mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
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 <jacob@tea.xyz>
This commit is contained in:
parent
ec6742b9dc
commit
c46d559a04
2 changed files with 45 additions and 0 deletions
32
projects/jugit.fz-juelich.de/mlz/libcerf/package.yml
Normal file
32
projects/jugit.fz-juelich.de/mlz/libcerf/package.yml
Normal file
|
@ -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}}
|
13
projects/jugit.fz-juelich.de/mlz/libcerf/test.c
Normal file
13
projects/jugit.fz-juelich.de/mlz/libcerf/test.c
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#include <cerf.h>
|
||||||
|
#include <complex.h>
|
||||||
|
#include <math.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
Loading…
Reference in a new issue