mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 15:20:07 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
76 lines
1.8 KiB
Bash
76 lines
1.8 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/mpc/"
|
|
COPYRIGHT="2006-2011 INRIA"
|
|
LICENSE="GNU LGPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="https://ftpmirror.gnu.org/mpc/mpc-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="3.1.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
mpc$secondaryArchSuffix = $portVersion
|
|
lib:libmpc$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgmp$secondaryArchSuffix
|
|
lib:libmpfr$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
mpc${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libmpc$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
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
|
|
"
|
|
|
|
defineDebugInfoPackage mpc$secondaryArchSuffix \
|
|
$libDir/libmpc.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
rm $libDir/libmpc.la
|
|
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
rm -rf $infoDir
|
|
fi
|
|
|
|
prepareInstalledDevelLib libmpc
|
|
packageEntries devel $developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|