mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
musepack.net/libcuefile (#4041)
* new file: projects/musepack.net/libcuefile/package.yml new file: projects/musepack.net/libcuefile/test.c * CFLAGS
This commit is contained in:
parent
e2f33fe988
commit
e128d80d29
38
projects/musepack.net/libcuefile/package.yml
Normal file
38
projects/musepack.net/libcuefile/package.yml
Normal file
|
@ -0,0 +1,38 @@
|
|||
distributable:
|
||||
url: https://files.musepack.net/source/libcuefile_r{{version.major}}.tar.gz
|
||||
strip-components: 1
|
||||
versions:
|
||||
url: https://www.musepack.net/index.php?pg=src
|
||||
match: /libcuefile_r\d+\.tar\.gz/
|
||||
strip:
|
||||
- /^libcuefile_r/
|
||||
- /\.tar\.gz/
|
||||
build:
|
||||
dependencies:
|
||||
cmake.org: '*'
|
||||
linux:
|
||||
gnu.org/gcc: '*'
|
||||
script:
|
||||
- cmake -S . -B build $CMAKE_ARGS
|
||||
- cmake --build build
|
||||
- cmake --install build
|
||||
- mkdir -p {{prefix}}/include
|
||||
- cp -r include/cuetools {{prefix}}/include/
|
||||
env:
|
||||
darwin:
|
||||
CFLAGS: "$CFLAGS -Wno-implicit-function-declaration"
|
||||
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
|
||||
test:
|
||||
dependencies:
|
||||
linux:
|
||||
gnu.org/gcc: '*'
|
||||
script:
|
||||
- cc test.c -lcuefile -o test
|
||||
- ./test
|
7
projects/musepack.net/libcuefile/test.c
Normal file
7
projects/musepack.net/libcuefile/test.c
Normal file
|
@ -0,0 +1,7 @@
|
|||
#include <cuetools/cuefile.h>
|
||||
#include <cuetools/cdtext.h>
|
||||
#include <cuetools/cd.h>
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue