pantry/projects/fftw.org/package.yml

46 lines
1.1 KiB
YAML
Raw Normal View History

distributable:
url: https://fftw.org/fftw-{{version}}.tar.gz
strip-components: 1
versions:
url: https://fftw.org/download.html
match: /fftw-\d+\.\d+\.\d+\.tar\.gz/
strip:
- /^fftw-/
- /\.tar\.gz/
dependencies:
open-mpi.org: '*'
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
freedesktop.org/pkg-config: '*'
script:
- ./configure --enable-single $ARGS
- make --jobs {{hw.concurrency}} install
- make clean
- ./configure $ARGS
- make --jobs {{hw.concurrency}} install
- make clean
- ./configure --enable-long-double $ARGS
- make --jobs {{hw.concurrency}} install
env:
CC: "{{deps.tea.xyz/gx/cc.prefix}}/bin/clang"
ARGS:
- --enable-shared
- --disable-debug
- --prefix={{prefix}}
- --enable-threads
- --disable-dependency-tracking
provides:
- bin/fftw-wisdom
- bin/fftw-wisdom-to-conf
- bin/fftwf-wisdom
- bin/fftwl-wisdom
test:
dependencies:
tea.xyz/gx/cc: c99
script:
- fftw-wisdom --version | grep {{version}}
- cc -o fftw fftw.c -lfftw3
- ./fftw