156.11. libcerf-3.8
Complex error, Faddeeva, Voigt and Dawson functions
3.8-1 · MIT · 0.1 SBU · 403.4 KiB, 25 files · 41_system, 888 of 1047 · ports/core/sci-libs/libcerf
Homepage: https://jugit.fz-juelich.de/mlz/libcerf
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/sci-libs.txt:
The complex error functions behind gnuplot's cerf(), faddeeva() and voigt().
Depends on: cmake, ninja, perl.
Required by (2): gnuplot, labplot.
Sources: libcerf-3.8.tar.gz (4.5 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libcerf'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_SHARED_LIBS=ON \
-D BUILD_TESTING=OFF \
-D CERF_C=ON \
-D CERF_CPP=ON \
-D LIB_MAN=ON \
-D LIB_RUN=ON
cmake --build build
DESTDIR=$PKG cmake --install build
Libraries: libcerf.so, libcerfcpp.so.
Directories: /usr/lib/cmake/cerf, /usr/share/licenses/libcerf.