new file: projects/github.com/sekrit-twc/zimg/package.yml

new file:   projects/github.com/sekrit-twc/zimg/test.c
This commit is contained in:
andrejrabcenko 2023-05-01 20:42:03 +03:00 committed by Jacob Heider
parent 8323d77a65
commit ecd5e156aa
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,28 @@
distributable:
url: https://github.com/sekrit-twc/zimg/archive/release-{{version}}.tar.gz
strip-components: 1
versions:
github: sekrit-twc/zimg
strip: /^release-/
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
gnu.org/autoconf: '*'
gnu.org/automake: '*'
gnu.org/libtool: '*'
script: |
./autogen.sh
./configure $ARGS
make --jobs {{ hw.concurrency }} install
env:
ARGS:
- --prefix="{{prefix}}"
test:
dependencies:
tea.xyz/gx/cc: c99
script:
cc test.c -lzimg -o test

View file

@ -0,0 +1,9 @@
#include <assert.h>
#include <zimg.h>
int main() {
zimg_image_format format;
zimg_image_format_default(&format, ZIMG_API_VERSION);
assert(ZIMG_MATRIX_UNSPECIFIED == format.matrix_coefficients);
return 0;
}