mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+frei0r
This commit is contained in:
parent
358f62e829
commit
11b8ef0755
35
projects/frei0r.dyne.org/package.yml
Normal file
35
projects/frei0r.dyne.org/package.yml
Normal file
|
@ -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
|
10
projects/frei0r.dyne.org/test.c
Normal file
10
projects/frei0r.dyne.org/test.c
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#include <frei0r.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
int mver = FREI0R_MAJOR_VERSION;
|
||||||
|
if (mver != 0) {
|
||||||
|
return 0;
|
||||||
|
} else {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue