Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions projects/github.com/sekrit-twc/zimg/package.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions projects/github.com/sekrit-twc/zimg/test.c
Original file line number Diff line number Diff line change
@@ -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;
}