new file: projects/taglib.org/package.yml

This commit is contained in:
Andrii Riabchenko 2023-11-12 13:26:01 +02:00 committed by Max Howell
parent 7a01ee4e0e
commit bc9688caf1

View file

@ -0,0 +1,38 @@
distributable:
url: https://taglib.github.io/releases/taglib-{{version}}.tar.gz
strip-components: 1
versions:
github: taglib/taglib
dependencies:
zlib.net: '*'
build:
dependencies:
cmake.org: '*'
linux:
gnu.org/gcc: '*'
script:
- cmake $CMAKE_ARGS
- make --jobs {{ hw.concurrency }} install
- run: |
sed -i.bak "s|prefix=|prefix=\$(dirname \$0)/..|g" taglib-config
sed -i.bak "s|{{prefix}}|\$(dirname \$0)/..|g" taglib-config
rm taglib-config.bak
working-directory: "{{prefix}}/bin"
env:
CMAKE_ARGS:
- -DCMAKE_INSTALL_PREFIX="{{prefix}}
- -DCMAKE_INSTALL_LIBDIR=lib
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_FIND_FRAMEWORK=LAST
- -DCMAKE_VERBOSE_MAKEFILE=ON
- -Wno-dev
- -DBUILD_TESTING=OFF
- -DWITH_MP4=ON
- -DWITH_ASF=ON
- -DBUILD_SHARED_LIBS=ON
provides:
- bin/taglib-config
test:
script:
- taglib-config --version | grep {{version}}
- taglib-config --prefix | grep {{prefix}}