Files
haikuports/sci-libs/libcerf/libcerf-2.4.recipe
Alexander von Gluck 47ea51f320 cmake/meson: Mass fix packages with broken debuginfo (#12822)
* cmake/debuginfo: Mass fix packages with broken debuginfo

* rtl_sdr: Fix trailing whitespace

* meson/debuginfo: Mass fix packages with broken debuginfo

* clean up conflicts

---------

Co-authored-by: Luc Schrijvers <begasus@gmail.com>
2026-01-07 17:36:21 +01:00

74 lines
1.6 KiB
Bash

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="3"
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
cmd:pod2man
"
defineDebugInfoPackage libcerf$secondaryArchSuffix \
$libDir/libcerf.so.$libVersion
BUILD()
{
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
$cmakeDirArgs
make -Cbuild $jobArgs
}
INSTALL()
{
make -Cbuild install
prepareInstalledDevelLib \
libcerf
fixPkgconfig
packageEntries devel \
$developDir \
$documentationDir \
$libDir/cmake
}
TEST()
{
make -Cbuild test
}