Files
haikuports/dev-libs/mpc/mpc-1.0.3.recipe
Jérôme Duval 454940d466 Bump revisions for x86_64 rebuild after time_t change.
* make gawk compatible with version 3.
* add some prerequisites for icu.
2017-06-12 17:40:24 -04:00

66 lines
1.6 KiB
Bash

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."
HOMEPAGE="http://www.multiprecision.org"
COPYRIGHT="2006-2014 Andreas Enge, Mickaël Gastineau, Philippe Théveny and \
Paul Zimmermann"
LICENSE="GNU LGPL v3"
REVISION="3"
SOURCE_URI="$HOMEPAGE/mpc/download/mpc-$portVersion.tar.gz"
CHECKSUM_SHA256="617decc6ea09889fb08ede330917a00b16809b8db88c29c31bfbb49cbf88ecc3"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
PROVIDES="
mpc$secondaryArchSuffix = $portVersion
lib:libmpc$secondaryArchSuffix = 3.0.0 compat >= 3
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgmp$secondaryArchSuffix
lib:libmpfr$secondaryArchSuffix
"
PROVIDES_devel="
mpc${secondaryArchSuffix}_devel = $portVersion
devel:libmpc$secondaryArchSuffix = 3.0.0 compat >= 3
"
REQUIRES_devel="
mpc$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libgmp$secondaryArchSuffix
devel:libmpfr$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libmpc.la
prepareInstalledDevelLibs libmpc
packageEntries devel $developDir
}
TEST()
{
make $jobArgs check
}