mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
libavif: enable encoding support
This commit is contained in:
parent
5b94142e30
commit
bb5387aa3c
1 changed files with 18 additions and 4 deletions
|
@ -1,13 +1,16 @@
|
||||||
# Template file for 'libavif'
|
# Template file for 'libavif'
|
||||||
pkgname=libavif
|
pkgname=libavif
|
||||||
version=0.11.1
|
version=0.11.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-DAVIF_BUILD_APPS=ON -DAVIF_BUILD_GDK_PIXBUF=ON
|
configure_args="-DAVIF_BUILD_APPS=ON -DAVIF_BUILD_GDK_PIXBUF=ON
|
||||||
-DAVIF_CODEC_DAV1D=ON"
|
-DAVIF_CODEC_AOM=ON $(vopt_bool dav1d AVIF_CODEC_DAV1D) $(vopt_bool rav1e AVIF_CODEC_RAV1E)
|
||||||
|
$(vopt_bool svt AVIF_CODEC_SVT)"
|
||||||
hostmakedepends="gdk-pixbuf-devel pkg-config"
|
hostmakedepends="gdk-pixbuf-devel pkg-config"
|
||||||
makedepends="gdk-pixbuf-devel libdav1d-devel
|
makedepends="gdk-pixbuf-devel libaom-devel
|
||||||
libjpeg-turbo-devel libpng-devel zlib-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"
|
short_desc="Library for encoding and decoding .avif files"
|
||||||
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
license="BSD-2-Clause"
|
license="BSD-2-Clause"
|
||||||
|
@ -16,6 +19,17 @@ changelog="https://github.com/AOMediaCodec/libavif/blob/main/CHANGELOG.md"
|
||||||
distfiles="https://github.com/AOMediaCodec/libavif/archive/refs/tags/v${version}.tar.gz"
|
distfiles="https://github.com/AOMediaCodec/libavif/archive/refs/tags/v${version}.tar.gz"
|
||||||
checksum=0eb49965562a0e5e5de58389650d434cff32af84c34185b6c9b7b2fccae06d4e
|
checksum=0eb49965562a0e5e5de58389650d434cff32af84c34185b6c9b7b2fccae06d4e
|
||||||
|
|
||||||
|
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() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue