From c46d559a04bd7659a5530f1f5b4f93ac28b5f6d8 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Mon, 21 Aug 2023 05:52:43 +0300 Subject: [PATCH] jugit.fz-juelich.de/mlz/libcerf (#2589) * jugit.fz-juelich.de/mlz/libcerf * gcc * DCMAKE_CXX_STANDARD * modified: projects/jugit.fz-juelich.de/mlz/libcerf/package.yml * builds local... * need perl --------- Co-authored-by: Jacob Heider --- .../mlz/libcerf/package.yml | 32 +++++++++++++++++++ .../jugit.fz-juelich.de/mlz/libcerf/test.c | 13 ++++++++ 2 files changed, 45 insertions(+) create mode 100644 projects/jugit.fz-juelich.de/mlz/libcerf/package.yml create mode 100644 projects/jugit.fz-juelich.de/mlz/libcerf/test.c 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