From 5b18481f2c0cda1b52e8c3cce74db01de3ae682a Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sat, 9 Aug 2014 11:26:35 +0200 Subject: [PATCH] MPFR: make it work. * All tests passing on gcc4, 18 failures on gcc2. Use with caution. --- dev-libs/mpfr/mpfr-3.1.1.recipe | 34 -------------- dev-libs/mpfr/mpfr-3.1.2.recipe | 79 +++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+), 34 deletions(-) delete mode 100644 dev-libs/mpfr/mpfr-3.1.1.recipe create mode 100644 dev-libs/mpfr/mpfr-3.1.2.recipe diff --git a/dev-libs/mpfr/mpfr-3.1.1.recipe b/dev-libs/mpfr/mpfr-3.1.1.recipe deleted file mode 100644 index 8f4a04c4b..000000000 --- a/dev-libs/mpfr/mpfr-3.1.1.recipe +++ /dev/null @@ -1,34 +0,0 @@ -DESCRIPTION="library for multiple-precision floating-point computations with exact rounding" -HOMEPAGE="www.mpfr.org" -SRC_URI="http://www.mpfr.org/mpfr-current/mpfr-3.1.1.tar.xz" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="dev-libs/gmp = 5.0.5" -CHECKSUM_MD5="91d51c41fcf2799e4ee7a7126fc95c17" -BUILD() -{ - cd mpfr-3.1.1 -# libtoolize --force --copy --install -# aclocal -I m4 -# automake --add-missing -# autoconf - ./configure --prefix=`finddir B_COMMON_DIRECTORY` \ - --datarootdir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY` \ - --with-gmp=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd mpfr-3.1.1 - make install -} - -TEST() -{ - cd mpfr-3.1.1 - make check -} - -LICENSE="GNU LGPL v3" -#COPYRIGHT="" diff --git a/dev-libs/mpfr/mpfr-3.1.2.recipe b/dev-libs/mpfr/mpfr-3.1.2.recipe new file mode 100644 index 000000000..0d02295dc --- /dev/null +++ b/dev-libs/mpfr/mpfr-3.1.2.recipe @@ -0,0 +1,79 @@ +SUMMARY="multiple-precision floating-point computations with correct rounding." +DESCRIPTION="The MPFR library is a C library for multiple-precision \ +floating-point computations with correct rounding. MPFR has continuously been \ +supported by the INRIA and the current main authors come from the Caramel and \ +AriC project-teams at Loria (Nancy, France) and LIP (Lyon, France) \ +respectively; see more on the credit page. MPFR is based on the GMP \ +multiple-precision library. + +The main goal of MPFR is to provide a library for multiple-precision \ +floating-point computation which is both efficient and has a well-defined \ +semantics. It copies the good ideas from the ANSI/IEEE-754 standard for \ +double-precision floating-point arithmetic (53-bit significand). + +MPFR is free. It is distributed under the GNU Lesser General Public License \ +(GNU Lesser GPL), version 3 or later (2.1 or later for MPFR versions until \ +2.4.x). The library has been registered in France by the Agence de Protection \ +des Programmes under the number IDDN FR 001 120020 00 R P 2000 000 10800, on \ +15 March 2000. This license guarantees your freedom to share and change MPFR, \ +to make sure MPFR is free for all its users. Unlike the ordinary General \ +Public License, the Lesser GPL enables developers of non-free programs to use \ +MPFR in their programs. If you have written a new function for MPFR or \ +improved an existing one, please share your work!" +LICENSE="GNU LGPL v3" +HOMEPAGE="http://www.mpfr.org" +COPYRIGHT="2000-2014 INRIA" +SRC_URI="http://www.mpfr.org/mpfr-current/mpfr-3.1.2.tar.bz2" +CHECKSUM_SHA256="79c73f60af010a30a5c27a955a1d2d01ba095b72537dab0ecaad57f5a7bb1b6b" +REVISION="1" + +ARCHITECTURES="x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + mpfr$secondaryArchSuffix = $portVersion + lib:libmpfr$secondaryArchSuffix = 4.1.2 compat = 4 +" + +REQUIRES=" + haiku$secondaryArchSuffix + lib:libgmp$secondaryArchSuffix +" + +BUILD_REQUIRES=" + devel:libgmp$secondaryArchSuffix +" + +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel + cmd:awk + cmd:gcc$secondaryArchSuffix + cmd:make +" + +PROVIDES_devel=" + mpfr${secondaryArchSuffix}_devel = $portVersion + devel:libmpfr$secondaryArchSuffix = 4.1.2 compat = 4 +" + +REQUIRES_devel=" + mpfr$secondaryArchSuffix == $portVersion base +" + +BUILD() +{ + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + prepareInstalledDevelLib libmpfr + packageEntries devel $developDir +} + +TEST() +{ + make check $jobArgs +}