48 lines
1.5 KiB
Bash
48 lines
1.5 KiB
Bash
# Template file for 'libavif'
|
|
pkgname=libavif
|
|
version=1.1.0
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DAVIF_BUILD_APPS=ON -DAVIF_BUILD_GDK_PIXBUF=ON
|
|
-DAVIF_LIBYUV=OFF -DAVIF_CODEC_AOM=SYSTEM
|
|
$(vopt_bool dav1d AVIF_CODEC_DAV1D) $(vopt_bool rav1e AVIF_CODEC_RAV1E)
|
|
$(vopt_bool svt AVIF_CODEC_SVT)"
|
|
hostmakedepends="gdk-pixbuf-devel pkg-config"
|
|
makedepends="gdk-pixbuf-devel libaom-devel libsharpyuv-devel
|
|
libjpeg-turbo-devel libpng-devel zlib-devel
|
|
$(vopt_if dav1d "libdav1d-devel") $(vopt_if rav1e "rav1e-devel")
|
|
$(vopt_if svt "libsvt-av1-devel")"
|
|
short_desc="Library for encoding and decoding .avif files"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://github.com/AOMediaCodec/libavif"
|
|
changelog="https://raw.githubusercontent.com/AOMediaCodec/libavif/main/CHANGELOG.md"
|
|
distfiles="https://github.com/AOMediaCodec/libavif/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=edb31951005d7a143be1724f24825809599a4832073add50eaf987733defb5c8
|
|
|
|
build_options="dav1d rav1e svt"
|
|
build_options_default="dav1d rav1e"
|
|
|
|
desc_option_dav1d="Enable support for DAV1D decoder"
|
|
desc_option_rav1e="Enable support for RAV1E encoder"
|
|
desc_option_svt="Enable support for SVT-AV1 encoder (64-bit only)"
|
|
|
|
if [ "$XBPS_TARGET_WORDSIZE" != "32" ]; then
|
|
build_options_default+=" svt"
|
|
fi
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
libavif-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/cmake
|
|
}
|
|
}
|