blob: e241979a55d0cd1abc462f8825b122ba9ee4a01b (
plain)
1 # Description: Library for encoding and decoding .avif files
2 # URL: https://github.com/AOMediaCodec/libavif
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: aom dav1d gdk-pixbuf libjpeg-turbo libpng libyuv nasm rav1e svt-av1
5
6 name=libavif
7 version=0.11.1
8 release=1
9 source=(https://github.com/AOMediaCodec/libavif/archive/v$version/$name-$version.tar.gz)
10
11 build() {
12 cmake -S $name-$version -B build -G Ninja \
13 -D CMAKE_INSTALL_PREFIX=/usr \
14 -D CMAKE_INSTALL_LIBDIR=lib \
15 -D CMAKE_BUILD_TYPE=Release \
16 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
17 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
18 -D AVIF_BUILD_APPS=ON \
19 -D AVIF_CODEC_AOM=ON \
20 -D AVIF_CODEC_DAV1D=ON \
21 -D AVIF_CODEC_RAV1E=ON \
22 -D AVIF_CODEC_SVT=ON \
23 -D AVIF_BUILD_GDK_PIXBUF=ON \
24 -Wno-dev
25
26 cmake --build build
27 DESTDIR=$PKG cmake --install build
28 }
|