libcerf, new recipe (#10288)

Optional dependency for labplot2
This commit is contained in:
Schrijvers Luc
2024-04-01 21:30:02 +02:00
committed by GitHub
parent 7b394f107f
commit 283343b3f2

View File

@@ -0,0 +1,73 @@
SUMMARY="Efficient and accurate implementation of complex error functions"
DESCRIPTION="a self-contained numeric library that provides an efficient and accurate \
implementation of complex error functions, along with Dawson, Faddeeva, and Voigt functions."
HOMEPAGE="https://jugit.fz-juelich.de/mlz/libcerf"
COPYRIGHT="2012 Massachusetts Institute of Technology
2013 Forschungszentrum Jülich GmbH"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://jugit.fz-juelich.de/mlz/libcerf/-/archive/v$portVersion/libcerf-v$portVersion.tar.bz2"
CHECKSUM_SHA256="6084ee75f7035690fc193a8b298bc87f6446b5e19f20544690c171a5094fe76c"
SOURCE_DIR="libcerf-v$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
PROVIDES="
libcerf$secondaryArchSuffix = $portVersion
lib:libcerf$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libcerf${secondaryArchSuffix}_devel = $portVersion
devel:libcerf$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
libcerf$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pod2html$secondaryArchSuffix
cmd:pod2man$secondaryArchSuffix
"
defineDebugInfoPackage libcerf$secondaryArchSuffix \
$libDir/libcerf.so.$libVersion
BUILD()
{
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs
make -Cbuild $jobArgs
}
INSTALL()
{
make -Cbuild install
prepareInstalledDevelLib \
libcerf
fixPkgconfig
packageEntries devel \
$developDir \
$documentationDir \
$libDir/cmake
}
TEST()
{
make -Cbuild test
}