summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2021-02-05 03:27:37 +0000
committerSteve Wills <swills@FreeBSD.org>2021-02-05 03:27:37 +0000
commitf721cb26b00ecbcf2724d81f2cfe6cf18ca8e2d2 (patch)
tree76671331f11e83fd4182a8a80f4f53c0fb0bc89d /math
parentdevel/gitlab-runner: update to 13.8.0 (diff)
math/mpdecimal: create port
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. WWW: https://www.bytereef.org/mpdecimal/index.html PR: 253084 Submitted by: Stefan Krah <skrah@bytereef.org>
Notes
Notes: svn path=/head/; revision=564081
Diffstat (limited to 'math')
-rw-r--r--math/Makefile1
-rw-r--r--math/mpdecimal/Makefile29
-rw-r--r--math/mpdecimal/distinfo3
-rw-r--r--math/mpdecimal/pkg-descr16
-rw-r--r--math/mpdecimal/pkg-plist10
5 files changed, 59 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index a3695f1bf1a2..d16ad4c2e12f 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -420,6 +420,7 @@
SUBDIR += moab
SUBDIR += moo
SUBDIR += mpc
+ SUBDIR += mpdecimal
SUBDIR += mpexpr
SUBDIR += mpfi
SUBDIR += mpfr
diff --git a/math/mpdecimal/Makefile b/math/mpdecimal/Makefile
new file mode 100644
index 000000000000..5fae004da287
--- /dev/null
+++ b/math/mpdecimal/Makefile
@@ -0,0 +1,29 @@
+# $FreeBSD$
+
+PORTNAME= mpdecimal
+DISTVERSION= 2.5.1
+CATEGORIES= math
+MASTER_SITES= https://www.bytereef.org/software/mpdecimal/releases/
+
+MAINTAINER= skrah@bytereef.org
+COMMENT= C/C++ arbitrary precision decimal floating point libraries
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+USES= gmake
+
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
+ALL_TARGET= default
+TEST_TARGET= check_local
+
+PORTDOCS= libmpdec++/* libmpdec/*
+
+OPTIONS_DEFINE= DOCS
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpdec.so.${DISTVERSION}
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpdec++.so.${DISTVERSION}
+
+.include <bsd.port.mk>
diff --git a/math/mpdecimal/distinfo b/math/mpdecimal/distinfo
new file mode 100644
index 000000000000..de2674b55245
--- /dev/null
+++ b/math/mpdecimal/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1611939573
+SHA256 (mpdecimal-2.5.1.tar.gz) = 9f9cd4c041f99b5c49ffb7b59d9f12d95b683d88585608aa56a6307667b2b21f
+SIZE (mpdecimal-2.5.1.tar.gz) = 2584021
diff --git a/math/mpdecimal/pkg-descr b/math/mpdecimal/pkg-descr
new file mode 100644
index 000000000000..6d255c3cd278
--- /dev/null
+++ b/math/mpdecimal/pkg-descr
@@ -0,0 +1,16 @@
+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.
+
+
+WWW: https://www.bytereef.org/mpdecimal/index.html
diff --git a/math/mpdecimal/pkg-plist b/math/mpdecimal/pkg-plist
new file mode 100644
index 000000000000..8232710fee59
--- /dev/null
+++ b/math/mpdecimal/pkg-plist
@@ -0,0 +1,10 @@
+include/decimal.hh
+include/mpdecimal.h
+lib/libmpdec++.a
+lib/libmpdec++.so
+lib/libmpdec++.so.3
+lib/libmpdec++.so.2.5.1
+lib/libmpdec.a
+lib/libmpdec.so
+lib/libmpdec.so.3
+lib/libmpdec.so.2.5.1