mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
73
sci-libs/libcerf/libcerf-2.4.recipe
Normal file
73
sci-libs/libcerf/libcerf-2.4.recipe
Normal 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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user