blob: 0a3e5c7a5a4f5d6b961df412cea2fd670725c49f (
plain)
1 # Description: Scalable Video Technology AV1 encoder and decoder
2 # URL: https://gitlab.com/AOMediaCodec/SVT-AV1
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: nasm
5
6 name=svt-av1
7 version=1.4.1
8 release=1
9 source=(https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v$version/SVT-AV1-v$version.tar.bz2)
10
11 build() {
12 sed '/CMAKE_BUILD_TYPE Release/d' -i SVT-AV1-v$version/CMakeLists.txt
13 cmake -S SVT-AV1-v$version -B build -G Ninja \
14 -D CMAKE_INSTALL_PREFIX=/usr \
15 -D CMAKE_INSTALL_LIBDIR=lib \
16 -D CMAKE_BUILD_TYPE=Release \
17 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
18 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
19 -D BUILD_SHARED_LIBS=ON \
20 -D NATIVE=OFF \
21 -Wno-dev
22
23 cmake --build build
24 DESTDIR=$PKG cmake --install build
25 }
|