+libsndfile

This commit is contained in:
Joe DeCapo 2023-05-02 22:39:45 -05:00 committed by Jacob Heider
parent 273f8c7208
commit a3ba7e19a6
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,54 @@
distributable:
url: https://github.com/libsndfile/libsndfile/archive/refs/tags/{{version}}.tar.gz
strip-components: 1
versions:
github: libsndfile/libsndfile
provides:
- bin/sndfile-info
- bin/sndfile-convert
- bin/sndfile-play
dependencies:
xiph.org/flac: '*'
lame.sourceforge.io: '*'
xiph.org/ogg: '*'
xiph.org/vorbis: '*'
mpg123.de: '*'
opus-codec.org: '*'
build:
dependencies:
cmake.org: '*'
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
python.org: ^3.11
script: |
cmake -S . -B build $ARGS
cmake --build build
cmake --install build
env:
ARGS:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{prefix}}
- -DBUILD_SHARED_LIBS=ON
- -DBUILD_PROGRAMS=ON
- -DENABLE_PACKAGE_CONFIG=ON
- -DINSTALL_PKGCONFIG_MODULE=ON
- -DBUILD_EXAMPLES=OFF
- -DCMAKE_INSTALL_RPATH={{prefix}}
- -DPYTHON_EXECUTABLE="$(which python)"
test:
script: |
SNDFILE_INFO="$(sndfile-info test.wav)"
case "$SNDFILE_INFO" in
*'Duration : 00:00:00.064'*)
echo 'Success'
;;
*)
echo 'Error'
exit 1
;;
esac

Binary file not shown.