41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# Template file for 'svt-av1'
|
|
pkgname=svt-av1
|
|
version=1.7.0
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DSVT_AV1_LTO=ON"
|
|
short_desc="AV1-compliant encoder/decoder library core"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-3-Clause-Clear"
|
|
homepage="https://gitlab.com/AOMediaCodec/SVT-AV1"
|
|
changelog="https://gitlab.com/AOMediaCodec/SVT-AV1/-/raw/master/CHANGELOG.md"
|
|
distfiles="https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v${version}/SVT-AV1-v${version}.tar.gz"
|
|
checksum=ce0973584f1a187aa4abf63f509ff8464397120878e322a3153f87e9c161fc4f
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686* | x86_64*) hostmakedepends="nasm"
|
|
esac
|
|
|
|
if [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
|
|
broken="32-bit is not supported"
|
|
fi
|
|
|
|
libsvt-av1_package() {
|
|
short_desc+=" - library files"
|
|
pkg_install() {
|
|
vmove "usr/lib/libSvtAv1Dec.so.*"
|
|
vmove "usr/lib/libSvtAv1Enc.so.*"
|
|
vlicense LICENSE.md
|
|
}
|
|
}
|
|
|
|
libsvt-av1-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="libsvt-av1>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|