diff --git a/projects/jugit.fz-juelich.de/mlz/libcerf/package.yml b/projects/jugit.fz-juelich.de/mlz/libcerf/package.yml new file mode 100644 index 00000000..c6d77012 --- /dev/null +++ b/projects/jugit.fz-juelich.de/mlz/libcerf/package.yml @@ -0,0 +1,32 @@ +distributable: + url: https://jugit.fz-juelich.de/mlz/libcerf/-/archive/v{{version.marketing}}/libcerf-v{{version.marketing}}.tar.gz + strip-components: 1 +display-name: libcerf +versions: + gitlab: jugit.fz-juelich.de:mlz/libcerf +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + cmake.org: '*' + perl.org: ^5 # pod2man/pod2html + working-directory: build + script: + - cmake .. $ARGS + - make --jobs {{ hw.concurrency }} install + env: + ARGS: + - -DCMAKE_INSTALL_PREFIX={{prefix}} + - -DCMAKE_INSTALL_LIBDIR={{prefix}}/lib + - -DCMAKE_BUILD_TYPE=Release + - -DCMAKE_FIND_FRAMEWORK=LAST + - -DCMAKE_VERBOSE_MAKEFILE=ON + - -Wno-dev +test: + dependencies: + tea.xyz/gx/cc: c99 + freedesktop.org/pkg-config: '*' + script: + - cc test.c -lcerf -o test + - ./test + - pkg-config --modversion libcerf | grep {{version.marketing}} \ No newline at end of file diff --git a/projects/jugit.fz-juelich.de/mlz/libcerf/test.c b/projects/jugit.fz-juelich.de/mlz/libcerf/test.c new file mode 100644 index 00000000..23736729 --- /dev/null +++ b/projects/jugit.fz-juelich.de/mlz/libcerf/test.c @@ -0,0 +1,13 @@ +#include +#include +#include +#include +#include + +int main (void) { + double _Complex a = 1.0 - 0.4I; + a = cerf(a); + if (fabs(creal(a)-0.910867) > 1.e-6) abort(); + if (fabs(cimag(a)+0.156454) > 1.e-6) abort(); + return 0; +} \ No newline at end of file