2022-10-30 11:51:43 +01:00
|
|
|
# Description: Scalable Video Technology AV1 encoder and decoder
|
|
|
|
# URL: https://gitlab.com/AOMediaCodec/SVT-AV1
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: nasm
|
|
|
|
|
|
|
|
name=svt-av1
|
2024-05-18 16:42:55 +02:00
|
|
|
version=2.1.0
|
2022-10-30 11:51:43 +01:00
|
|
|
release=1
|
|
|
|
source=(https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v$version/SVT-AV1-v$version.tar.bz2)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
sed '/CMAKE_BUILD_TYPE Release/d' -i SVT-AV1-v$version/CMakeLists.txt
|
2023-08-26 10:06:42 +02:00
|
|
|
|
2022-10-30 11:51:43 +01:00
|
|
|
cmake -S SVT-AV1-v$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D BUILD_SHARED_LIBS=ON \
|
|
|
|
-D NATIVE=OFF \
|
|
|
|
-Wno-dev
|
|
|
|
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
}
|