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>
This commit is contained in:
Steve Wills 2021-02-05 03:27:37 +00:00
parent 9e77d73825
commit f721cb26b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=564081
5 changed files with 59 additions and 0 deletions

View file

@ -420,6 +420,7 @@
SUBDIR += moab
SUBDIR += moo
SUBDIR += mpc
SUBDIR += mpdecimal
SUBDIR += mpexpr
SUBDIR += mpfi
SUBDIR += mpfr

29
math/mpdecimal/Makefile Normal file
View file

@ -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>

3
math/mpdecimal/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1611939573
SHA256 (mpdecimal-2.5.1.tar.gz) = 9f9cd4c041f99b5c49ffb7b59d9f12d95b683d88585608aa56a6307667b2b21f
SIZE (mpdecimal-2.5.1.tar.gz) = 2584021

16
math/mpdecimal/pkg-descr Normal file
View file

@ -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

10
math/mpdecimal/pkg-plist Normal file
View file

@ -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