pantry/projects/soxr.sourceforge.net/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

29 lines
642 B
YAML

distributable:
url: https://downloads.sourceforge.net/project/soxr/soxr-{{version}}-Source.tar.xz
strip-components: 1
versions:
url: https://sourceforge.net/projects/soxr/files/
match: /soxr-\d+.\d+.\d+
strip:
- /^soxr-/
build:
dependencies:
cmake.org: '*'
script: |
cmake $ARGS
make --jobs {{ hw.concurrency }} install
env:
ARGS:
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
darwin/aarch64:
ARGS:
# https://github.com/chirlu/soxr/issues/6
- -DWITH_CR32S=OFF
test:
dependencies:
freedesktop.org/pkg-config: '*'
script:
pkg-config --modversion soxr | grep {{version}}