pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/math/mpdecimal
Module Name: pkgsrc
Committed By: wiz
Date: Tue Dec 24 10:52:58 UTC 2024
Added Files:
pkgsrc/math/mpdecimal: DESCR Makefile PLIST buildlink3.mk distinfo
pkgsrc/math/mpdecimal/patches: patch-configure
Log Message:
math/mpdecimal: import mpdecimal-4.0.0
Worked on in wip by Stefan Krah, bsiegert, adam, and myself.
libmpdec is a complete C implementation of the General Decimal Arithmetic
Specification. The specification, written by Mike Cowlishaw from IBM,
defines a general purpose arbitrary precision data type together with
rigorously specified functions and rounding behavior. As described in the
scope section of the specification, libmpdec will - with minor restrictions -
also conform to the IEEE 754-2008 Standard for Floating-Point Arithmetic,
provided that the appropriate context parameters are set.
libmpdec++ is a complete C++ implementation of the General Decimal Arithmetic
Specification. libmpdec++ is mostly a header library around libmpdec. The
library frees users from manual memory management and has an easy API with
inline operators. libmpdec++ has a thread local context for inline operators
and other functions that use the implicit context.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/math/mpdecimal/DESCR \
pkgsrc/math/mpdecimal/Makefile pkgsrc/math/mpdecimal/PLIST \
pkgsrc/math/mpdecimal/buildlink3.mk pkgsrc/math/mpdecimal/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/math/mpdecimal/patches/patch-configure
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/math/mpdecimal/DESCR
diff -u /dev/null pkgsrc/math/mpdecimal/DESCR:1.1
--- /dev/null Tue Dec 24 10:52:58 2024
+++ pkgsrc/math/mpdecimal/DESCR Tue Dec 24 10:52:58 2024
@@ -0,0 +1,13 @@
+libmpdec is a complete C implementation of the General Decimal Arithmetic
+Specification. The specification, written by Mike Cowlishaw from IBM,
+defines a general purpose arbitrary precision data type together with
+rigorously specified functions and rounding behavior. As described in the
+scope section of the specification, libmpdec will - with minor restrictions -
+also conform to the IEEE 754-2008 Standard for Floating-Point Arithmetic,
+provided that the appropriate context parameters are set.
+
+libmpdec++ is a complete C++ implementation of the General Decimal Arithmetic
+Specification. libmpdec++ is mostly a header library around libmpdec. The
+library frees users from manual memory management and has an easy API with
+inline operators. libmpdec++ has a thread local context for inline operators
+and other functions that use the implicit context.
Index: pkgsrc/math/mpdecimal/Makefile
diff -u /dev/null pkgsrc/math/mpdecimal/Makefile:1.1
--- /dev/null Tue Dec 24 10:52:58 2024
+++ pkgsrc/math/mpdecimal/Makefile Tue Dec 24 10:52:58 2024
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2024/12/24 10:52:58 wiz Exp $
+
+DISTNAME= mpdecimal-4.0.0
+CATEGORIES= math
+MASTER_SITES= https://www.bytereef.org/software/mpdecimal/releases/
+
+MAINTAINER= skrah%bytereef.org@localhost
+HOMEPAGE= https://www.bytereef.org/mpdecimal/
+COMMENT= C/C++ arbitrary precision decimal floating point libraries
+LICENSE= 2-clause-bsd
+
+USE_CC_FEATURES= c99
+USE_CXX_FEATURES= c++11
+USE_LANGUAGES= c c++
+USE_TOOLS+= gmake
+GNU_CONFIGURE= yes
+BUILD_TARGET= default
+TEST_TARGET= check_local
+# Let libmpdec++.so find libmpdec.so
+CONFIGURE_ENV+= LDXXFLAGS="${COMPILER_RPATH_FLAG}${PREFIX}/lib"
+PKGCONFIG_OVERRIDE+= libmpdec/.pc/libmpdec.pc.in
+PKGCONFIG_OVERRIDE+= libmpdec++/.pc/libmpdec++.pc.in
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/math/mpdecimal/PLIST
diff -u /dev/null pkgsrc/math/mpdecimal/PLIST:1.1
--- /dev/null Tue Dec 24 10:52:58 2024
+++ pkgsrc/math/mpdecimal/PLIST Tue Dec 24 10:52:58 2024
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST,v 1.1 2024/12/24 10:52:58 wiz Exp $
+include/decimal.hh
+include/mpdecimal.h
+lib/libmpdec++.a
+lib/libmpdec++.so
+lib/libmpdec++.so.4
+lib/libmpdec++.so.${PKGVERSION}
+lib/libmpdec.a
+lib/libmpdec.so
+lib/libmpdec.so.4
+lib/libmpdec.so.${PKGVERSION}
+lib/pkgconfig/libmpdec++.pc
+lib/pkgconfig/libmpdec.pc
+man/man3/libmpdec++.3
+man/man3/libmpdec.3
+man/man3/mpdecimal.3
+share/doc/mpdecimal/COPYRIGHT.txt
Index: pkgsrc/math/mpdecimal/buildlink3.mk
diff -u /dev/null pkgsrc/math/mpdecimal/buildlink3.mk:1.1
--- /dev/null Tue Dec 24 10:52:58 2024
+++ pkgsrc/math/mpdecimal/buildlink3.mk Tue Dec 24 10:52:58 2024
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2024/12/24 10:52:58 wiz Exp $
+
+BUILDLINK_TREE+= mpdecimal
+
+.if !defined(MPDECIMAL_BUILDLINK3_MK)
+MPDECIMAL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.mpdecimal+= mpdecimal>=4.0.0
+BUILDLINK_PKGSRCDIR.mpdecimal?= ../../math/mpdecimal
+.endif # MPDECIMAL_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -mpdecimal
Index: pkgsrc/math/mpdecimal/distinfo
diff -u /dev/null pkgsrc/math/mpdecimal/distinfo:1.1
--- /dev/null Tue Dec 24 10:52:58 2024
+++ pkgsrc/math/mpdecimal/distinfo Tue Dec 24 10:52:58 2024
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2024/12/24 10:52:58 wiz Exp $
+
+BLAKE2s (mpdecimal-4.0.0.tar.gz) = 02a10248bfe5df47a25edde34604c7b26c8e51429e57992cd0e459c605591d6b
+SHA512 (mpdecimal-4.0.0.tar.gz) = 7610ac53ac79f7a8a33fa7a3e61515810444ec73ebca859df7a9ddc18e96b990c99323172810c9cc7f6d6e1502c0be308cd443d6c2d5d0c871648e4842e05d59
+Size (mpdecimal-4.0.0.tar.gz) = 315325 bytes
+SHA1 (patch-configure) = 202dca254c5e015d8364f29584d45e1c06440c92
Index: pkgsrc/math/mpdecimal/patches/patch-configure
diff -u /dev/null pkgsrc/math/mpdecimal/patches/patch-configure:1.1
--- /dev/null Tue Dec 24 10:52:58 2024
+++ pkgsrc/math/mpdecimal/patches/patch-configure Tue Dec 24 10:52:58 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-configure,v 1.1 2024/12/24 10:52:58 wiz Exp $
+
+Fix dynamic library install name on Darwin.
+
+--- configure.orig 2024-12-22 07:39:18.885702870 +0000
++++ configure
+@@ -2843,7 +2843,7 @@ case $host in
+ LIBNAME="libmpdec.dylib"
+ LIBSONAME="libmpdec.4.dylib"
+ LIBSHARED="libmpdec.4.0.0.dylib"
+- CONFIGURE_LDFLAGS="-dynamiclib $FPIC -install_name @rpath/$LIBSONAME -compatibility_version 4.0 -current_version 4.0.0"
++ CONFIGURE_LDFLAGS="-dynamiclib $FPIC -install_name ${PREFIX}/lib/$LIBSONAME -compatibility_version 4.0 -current_version 4.0.0"
+ ;;
+ *-*-aix*)
+ LIBNAME=
+@@ -2887,7 +2887,7 @@ case $host in
+ LIBNAME_CXX="libmpdec++.dylib"
+ LIBSONAME_CXX="libmpdec++.4.dylib"
+ LIBSHARED_CXX="libmpdec++.4.0.0.dylib"
+- CONFIGURE_LDXXFLAGS="-dynamiclib $FPIC -install_name @rpath/$LIBSONAME_CXX -compatibility_version 4.0 -current_version 4.0.0"
++ CONFIGURE_LDXXFLAGS="-dynamiclib $FPIC -install_name ${PREFIX}/lib/$LIBSONAME_CXX -compatibility_version 4.0 -current_version 4.0.0"
+ ;;
+ *-*-aix*)
+ LIBNAME_CXX=
Home |
Main Index |
Thread Index |
Old Index