2023-03-13 00:09:12 +03:00
|
|
|
distributable:
|
2023-10-02 03:41:57 +03:00
|
|
|
url: https://github.com/AOMediaCodec/libavif/archive/refs/tags/v{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
2023-03-13 00:09:12 +03:00
|
|
|
|
|
|
|
versions:
|
|
|
|
github: AOMediaCodec/libavif
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
aomedia.googlesource.com/aom: ^3
|
|
|
|
libpng.org: ^1
|
|
|
|
libjpeg-turbo.org: ^2
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
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
|
|
|
|
|
2023-04-18 22:51:32 +03:00
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
avifenc fixture.png test.avif
|
|
|
|
test -f test.avif
|
2023-03-13 00:09:12 +03:00
|
|
|
|
2023-04-18 22:51:32 +03:00
|
|
|
avifdec test.avif test.jpg
|
|
|
|
test -f test.jpg
|
2023-03-13 00:09:12 +03:00
|
|
|
|
2023-04-18 22:51:32 +03:00
|
|
|
cc example.c -lavif
|
|
|
|
./a.out test.avif
|