mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
abe6aa98eb
* +libavif Closes #210 * wip
43 lines
862 B
YAML
43 lines
862 B
YAML
distributable:
|
|
url: https://github.com/AOMediaCodec/libavif/archive/refs/tags/v{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: AOMediaCodec/libavif
|
|
|
|
dependencies:
|
|
aomedia.googlesource.com/aom: ^3
|
|
libpng.org: ^1
|
|
libjpeg-turbo.org: ^2
|
|
|
|
build:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
tea.xyz/gx/make: '*'
|
|
cmake.org: ^3
|
|
working-directory: build
|
|
script: |
|
|
cmake .. $ARGS
|
|
make --jobs {{ hw.concurrency }} install
|
|
env:
|
|
ARGS:
|
|
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
|
- -DCMAKE_BUILD_TYPE=Release
|
|
- -DAVIF_CODEC_AOM=ON
|
|
- -DAVIF_BUILD_APPS=ON
|
|
- -DAVIF_BUILD_EXAMPLES=OFF
|
|
- -DAVIF_BUILD_TESTS=OFF
|
|
|
|
provides:
|
|
- bin/avifenc
|
|
- bin/avifdec
|
|
|
|
test: |
|
|
avifenc fixture.png test.avif
|
|
test -f test.avif
|
|
|
|
avifdec test.avif test.jpg
|
|
test -f test.jpg
|
|
|
|
cc example.c -lavif
|
|
./a.out test.avif
|