diff options
author | riastradh <riastradh@pkgsrc.org> | 2020-05-19 14:44:04 +0000 |
---|---|---|
committer | riastradh <riastradh@pkgsrc.org> | 2020-05-19 14:44:04 +0000 |
commit | 8dc122a7b7ba48111be498309ff02bd01e515944 (patch) | |
tree | 5cf61beebfa047c76899429da0cc4f6855b1b109 /math/mpfi | |
parent | 9b16f70ac4d384b2d2e27c5615b6b8d31ba9105e (diff) | |
download | pkgsrc-8dc122a7b7ba48111be498309ff02bd01e515944.tar.gz |
mpfi: Import mpfr-1.5.4 as math/mpfr
mpfr is a multiprecision floating-point interval arithmetic library.
Derived from wip/mpfi.
Diffstat (limited to 'math/mpfi')
-rw-r--r-- | math/mpfi/DESCR | 10 | ||||
-rw-r--r-- | math/mpfi/Makefile | 29 | ||||
-rw-r--r-- | math/mpfi/PLIST | 5 | ||||
-rw-r--r-- | math/mpfi/buildlink3.mk | 15 | ||||
-rw-r--r-- | math/mpfi/distinfo | 7 | ||||
-rw-r--r-- | math/mpfi/patches/patch-tests_Makefile.am | 33 |
6 files changed, 99 insertions, 0 deletions
diff --git a/math/mpfi/DESCR b/math/mpfi/DESCR new file mode 100644 index 00000000000..db0500f2141 --- /dev/null +++ b/math/mpfi/DESCR @@ -0,0 +1,10 @@ +MPFI (Multiple Precision Floating-Point Interval Library) is a library +for arbitrary precision interval arithmetic with intervals represented +using MPFR reliable floating-point numbers. It is based on the GNU MP +library and on the MPFR library. The purpose of an arbitrary precision +interval arithmetic is on the one hand to get guaranteed results, +thanks to interval computation, and on the other hand to obtain +accurate results, thanks to multiple precision arithmetic. The MPFI +library is built upon MPFR to benefit from the correct roundings +provided by MPFR, it portability, and its compliance with the IEEE 754 +standard for floating-point arithmetic. diff --git a/math/mpfi/Makefile b/math/mpfi/Makefile new file mode 100644 index 00000000000..c63b660888a --- /dev/null +++ b/math/mpfi/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1 2020/05/19 14:44:04 riastradh Exp $ + +DISTNAME= mpfi-1.5.4 +CATEGORIES= math +MASTER_SITES= https://gforge.inria.fr/frs/download.php/file/38111/ +EXTRACT_SUFX= .tgz + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://gforge.inria.fr/projects/mpfi/ +COMMENT= Multiprecision interval arithmetic library +LICENSE= gnu-lgpl-v2 + +USE_TOOLS+= autoconf +USE_TOOLS+= automake +USE_TOOLS+= autoreconf +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +INFO_FILES= yes + +CONFIGURE_ARGS+= --infodir=${PREFIX}/${PKGINFODIR} +INSTALLATION_DIRS+= ${PKGINFODIR} + +pre-configure: + cd ${WRKSRC} && ./autogen.sh + +TEST_TARGET= check + +.include "../../math/mpfr/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/math/mpfi/PLIST b/math/mpfi/PLIST new file mode 100644 index 00000000000..26e3857d69e --- /dev/null +++ b/math/mpfi/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1 2020/05/19 14:44:04 riastradh Exp $ +include/mpfi.h +include/mpfi_io.h +info/mpfi.info +lib/libmpfi.la diff --git a/math/mpfi/buildlink3.mk b/math/mpfi/buildlink3.mk new file mode 100644 index 00000000000..e7fe62ba99a --- /dev/null +++ b/math/mpfi/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD: buildlink3.mk,v 1.1 2020/05/19 14:44:04 riastradh Exp $ + +BUILDLINK_TREE+= mpfi + +.if !defined(MPFI_BUILDLINK3_MK) +MPFI_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.mpfi+= mpfi>=1.5.4 +BUILDLINK_ABI_DEPENDS.mpfi+= mpfi>=1.5.4 +BUILDLINK_PKGSRCDIR.mpfi?= ../../math/mpfi + +.include "../../math/mpfr/buildlink3.mk" +.endif # MPFI_BUILDLINK3_MK + +BUILDLINK_TREE+= -mpfi diff --git a/math/mpfi/distinfo b/math/mpfi/distinfo new file mode 100644 index 00000000000..a32a0ebd084 --- /dev/null +++ b/math/mpfi/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2020/05/19 14:44:04 riastradh Exp $ + +SHA1 (mpfi-1.5.4.tgz) = 06c7dc6f13e67ab199fefcfdc15328ea9fc82dcb +RMD160 (mpfi-1.5.4.tgz) = a03c5ac685f844badf95d7b006ca7ede8b7e2759 +SHA512 (mpfi-1.5.4.tgz) = 72ba7d8c950f4d4e2c7a3da8570cdcec08f75b73580cdf64c4cc3b24f8add23c46ccf78a6de2158e81bd77e6efabceebbae418988d536e7484356b8102e10ce1 +Size (mpfi-1.5.4.tgz) = 261696 bytes +SHA1 (patch-tests_Makefile.am) = d0c41610b684c8d6e1862baed7157e40f551c469 diff --git a/math/mpfi/patches/patch-tests_Makefile.am b/math/mpfi/patches/patch-tests_Makefile.am new file mode 100644 index 00000000000..23da957aece --- /dev/null +++ b/math/mpfi/patches/patch-tests_Makefile.am @@ -0,0 +1,33 @@ +$NetBSD: patch-tests_Makefile.am,v 1.1 2020/05/19 14:44:04 riastradh Exp $ + +Disable tests that are missing from the upstream distfile or fail to build. + +--- tests/Makefile.am.orig 2019-08-01 20:15:53.000000000 +0000 ++++ tests/Makefile.am +@@ -3,7 +3,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/src + + check_LTLIBRARIES = libmpfi-tests.la + libmpfi_tests_la_SOURCES = mpfi-tests.h read_data.c random.c \ +- type_i.c type_ii.c type_iii.c type_iiii.c type_iu.c type_is.c \ ++ type_i.c type_ii.c type_iii.c type_iu.c type_is.c \ + type_id.c type_if.c type_il.c type_iz.c type_iq.c type_ir.c type_iiu.c \ + type_iis.c type_iid.c type_iiz.c type_iiq.c type_iir.c \ + type_iui.c type_isi.c type_idi.c type_izi.c type_iqi.c \ +@@ -40,7 +40,7 @@ check_PROGRAMS = tabs tacos tacosh tadd + tcmp_fr tcmp_q tcmp_si tcmp_ui tcmp_z tconst_catalan \ + tconst_euler tconst_log2 tconst_pi tcos tcosh tcot tcoth \ + tcsc tcsch td_div td_sub tdiam tdiam_abs tdiam_rel tdiv \ +- tdiv_2exp tdiv_2si tdiv_2ui tdiv_d tdiv_ext tdiv_fr tdiv_q \ ++ tdiv_2exp tdiv_2si tdiv_2ui tdiv_d tdiv_fr tdiv_q \ + tdiv_si tdiv_ui tdiv_z terror texp texp2 texpm1 tfr_div \ + tfr_sub tget_d tget_endpoints tget_fr thas_zero thypot \ + tincrease tinf_p tinit tinits tinit_set tintersect tinterv_d \ +@@ -52,7 +52,7 @@ check_PROGRAMS = tabs tacos tacosh tadd + tis_zero tlog tlog10 tlog1p tlog2 tmag tmid tmig tmul \ + tmul_2exp tmul_2si tmul_2ui tmul_d tmul_fr tmul_q \ + tmul_si tmul_ui tmul_z tnan_p tneg tput_d tput_fr tput_q \ +- tput_si tput_ui tput_z tq_div tq_sub trec_sqrt tround_prec \ ++ tput_si tput_ui tput_z tq_div tq_sub tround_prec \ + tsec tsech tset tset_d tset_flt tset_fr tset_ld tset_q \ + tset_si tset_str tset_ui tset_z tsi_div tsi_sub tsin tsinh \ + tsqr tsqrt \ |