mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
mpdecimal, new recipe (#10433)
* mpdecimal, new recipe * Update dev-libs/mpdecimal/mpdecimal-4.0.0.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-libs/mpdecimal/mpdecimal-4.0.0.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> --------- Co-authored-by: OscarL <oscar.lesta@gmail.com>
This commit is contained in:
79
dev-libs/mpdecimal/mpdecimal-4.0.0.recipe
Normal file
79
dev-libs/mpdecimal/mpdecimal-4.0.0.recipe
Normal file
@@ -0,0 +1,79 @@
|
||||
SUMMARY="Correctly-rounded arbitrary precision decimal floating point arithmetic"
|
||||
DESCRIPTION="mpdecimal is a package for correctly-rounded arbitrary precision decimal floating \
|
||||
point arithmetic."
|
||||
HOMEPAGE="https://www.bytereef.org/mpdecimal/"
|
||||
COPYRIGHT="2008-2024 Stefan Krah"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="942445c3245b22730fd41a67a7c5c231d11cb1b9936b9c0f76334fb7d0b4468c"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
|
||||
|
||||
PROVIDES="
|
||||
mpdecimal$secondaryArchSuffix = $portVersion
|
||||
lib:libmpdec$secondaryArchSuffix = $portVersion
|
||||
lib:libmpdec++$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
mpdecimal${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libmpdec$secondaryArchSuffix = $portVersion
|
||||
devel:libmpdec++$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
mpdecimal$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoreconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
cmd:wget
|
||||
"
|
||||
|
||||
defineDebugInfoPackage mpdecimal$secondaryArchSuffix \
|
||||
$libDir/libmpdec.so.$libVersion \
|
||||
$libDir/libmpdec++.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
runConfigure ./configure \
|
||||
--disable-static
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libmpdec \
|
||||
libmpdec++
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$manDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
export LIBRARY_PATH="$sourceDir/libmpdec:$sourceDir/libmpdec++${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user