mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
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:
parent
8323d77a65
commit
ecd5e156aa
2 changed files with 37 additions and 0 deletions
28
projects/github.com/sekrit-twc/zimg/package.yml
Normal file
28
projects/github.com/sekrit-twc/zimg/package.yml
Normal 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
|
9
projects/github.com/sekrit-twc/zimg/test.c
Normal file
9
projects/github.com/sekrit-twc/zimg/test.c
Normal 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;
|
||||||
|
}
|
Loading…
Reference in a new issue