From 11b8ef07558950bbe35075fbbc1369b0d2087862 Mon Sep 17 00:00:00 2001 From: Joe DeCapo Date: Sun, 7 May 2023 11:44:07 -0500 Subject: [PATCH] +frei0r --- projects/frei0r.dyne.org/package.yml | 35 ++++++++++++++++++++++++++++ projects/frei0r.dyne.org/test.c | 10 ++++++++ 2 files changed, 45 insertions(+) create mode 100644 projects/frei0r.dyne.org/package.yml create mode 100644 projects/frei0r.dyne.org/test.c diff --git a/projects/frei0r.dyne.org/package.yml b/projects/frei0r.dyne.org/package.yml new file mode 100644 index 00000000..03a19112 --- /dev/null +++ b/projects/frei0r.dyne.org/package.yml @@ -0,0 +1,35 @@ +distributable: + url: https://files.dyne.org/frei0r/releases/frei0r-plugins-{{version}}.tar.gz + strip-components: 1 + +versions: + url: https://files.dyne.org/frei0r/releases/ + match: /frei0r-plugins-\d+\.\d+(\.\d+)?\.tar\.gz/ + strip: + - /^frei0r-plugins-/ + - /\.tar\.gz$/ + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + cmake.org: '*' + script: | + # Disable opportunistic linking against Cairo + sed -i.bak -e "s/find_package (Cairo)//" CMakeLists.txt + rm CMakeLists.txt.bak + cmake . $ARGS + make install + env: + ARGS: + - -DCMAKE_INSTALL_PREFIX="{{prefix}}" + - -DCMAKE_BUILD_TYPE=Release + - -DWITHOUT_OPENCV=ON + - -DWITHOUT_GAVL=ON + +test: + dependencies: + tea.xyz/gx/cc: c99 + script: | + cc test.c -o test + ./test diff --git a/projects/frei0r.dyne.org/test.c b/projects/frei0r.dyne.org/test.c new file mode 100644 index 00000000..575ae86b --- /dev/null +++ b/projects/frei0r.dyne.org/test.c @@ -0,0 +1,10 @@ +#include + +int main() { + int mver = FREI0R_MAJOR_VERSION; + if (mver != 0) { + return 0; + } else { + return 1; + } +}