mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
+libsndfile
This commit is contained in:
parent
273f8c7208
commit
a3ba7e19a6
2 changed files with 54 additions and 0 deletions
54
projects/github.com/libsndfile/libsndfile/package.yml
Normal file
54
projects/github.com/libsndfile/libsndfile/package.yml
Normal 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
|
BIN
projects/github.com/libsndfile/libsndfile/test.wav
Normal file
BIN
projects/github.com/libsndfile/libsndfile/test.wav
Normal file
Binary file not shown.
Loading…
Reference in a new issue