MPC: make it work.

* 4 failed tests on gcc2 - use with caution (probably because of the
broken MPFR)
* All tests pased on gcc4.
This commit is contained in:
Adrien Destugues
2014-08-09 12:37:38 +02:00
parent 5b18481f2c
commit d2e4129cd1
2 changed files with 67 additions and 34 deletions

View File

@@ -1,34 +0,0 @@
DESCRIPTION="library for multiple-precision complex arithmetics with exact rounding"
HOMEPAGE="mpc.multiprecision.org"
SRC_URI="http://www.multiprecision.org/mpc/download/mpc-1.0.1.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-libs/gmp = 5.0.5"
CHECKSUM_SHA1="8c7e19ad0dd9b3b5cc652273403423d6cf0c5edf"
BUILD()
{
cd mpc-1.0.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 mpc-1.0.1
make install
}
TEST()
{
cd mpc-1.0.1
make check
}
LICENSE="GNU LGPL v3"
#COPYRIGHT=""

View File

@@ -0,0 +1,67 @@
SUMMARY="Arithmetics of complex numbers with arbitrarily high precision."
DESCRIPTION="Gnu Mpc is a C library for the arithmetic of complex numbers \
with arbitrarily high precision and correct rounding of the result. It \
extends the principles of the IEEE-754 standard for fixed precision real \
floating point numbers to complex numbers, providing well-defined semantics \
for every operation. At the same time, speed of operation at high precision \
is a major design goal.
"
LICENSE="GNU LGPL v3"
COPYRIGHT="2006-2014 Andreas Enge, Mickaël Gastineau, Philippe Théveny
and Paul Zimmermann"
REVISION="1"
ARCHITECTURES="x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
HOMEPAGE="http://www.multiprecision.org"
SRC_URI="$HOMEPAGE/mpc/download/mpc-$portVersion.tar.gz"
CHECKSUM_SHA256="b561f54d8a479cee3bc891ee52735f18ff86712ba30f036f8b8537bae380c488"
PROVIDES="
mpc$secondaryArchSuffix = $portVersion
lib:libmpc$secondaryArchSuffix = 3.0.0 compat = 3
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgmp$secondaryArchSuffix
lib:libmpfr$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libgmp$secondaryArchSuffix
devel:libmpfr$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:awk
cmd:gcc
cmd:make
"
PROVIDES_devel="
mpc_devel$secondaryArchSuffix = $portVersion
devel:libmpc$secondaryArchSuffix = 3.0.0 compat = 3
"
REQUIRES_devel="
mpc$secondaryArchSuffix == $portVersion base
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libmpc
packageEntries devel $developDir
}
TEST()
{
make $jobArgs check
}