pantry/projects/heasarc.gsfc.nasa.gov/cfitsio/package.yml
2023-10-01 20:41:57 -04:00

31 lines
636 B
YAML

distributable:
url: https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-{{version}}.tar.gz
strip-components: 1
versions:
url: https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/
match: /cfitsio-\d+\.\d+(\.\d+)?\.tar\.gz/
strip:
- /^cfitsio-/
- /\.tar\.gz$/
dependencies:
darwin:
zlib.net: '*'
build:
script: |
./configure $ARGS
make shared
make install
env:
ARGS:
- --prefix="{{ prefix }}"
- --enable-reentrant
test:
script: |
cc testprog.c -o testprog -lcfitsio
./testprog > testprog.lis
cmp testprog.lis testprog.out
cmp testprog.fit testprog.std