From e128d80d299315a3ca84a3f9d19fb838c40868f6 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Sun, 12 Nov 2023 19:38:06 +0200 Subject: [PATCH] musepack.net/libcuefile (#4041) * new file: projects/musepack.net/libcuefile/package.yml new file: projects/musepack.net/libcuefile/test.c * CFLAGS --- projects/musepack.net/libcuefile/package.yml | 38 ++++++++++++++++++++ projects/musepack.net/libcuefile/test.c | 7 ++++ 2 files changed, 45 insertions(+) create mode 100644 projects/musepack.net/libcuefile/package.yml create mode 100644 projects/musepack.net/libcuefile/test.c diff --git a/projects/musepack.net/libcuefile/package.yml b/projects/musepack.net/libcuefile/package.yml new file mode 100644 index 00000000..61cef3a6 --- /dev/null +++ b/projects/musepack.net/libcuefile/package.yml @@ -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 diff --git a/projects/musepack.net/libcuefile/test.c b/projects/musepack.net/libcuefile/test.c new file mode 100644 index 00000000..fd44d02b --- /dev/null +++ b/projects/musepack.net/libcuefile/test.c @@ -0,0 +1,7 @@ +#include +#include +#include + +int main() { + return 0; +} \ No newline at end of file