handbrake: revbump for svt-av1

This commit is contained in:
zlice 2024-08-07 11:50:03 -04:00 committed by classabbyamp
parent d2606e46c1
commit 18a538285e
1 changed files with 4 additions and 14 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'handbrake'
pkgname=handbrake
version=1.6.1
revision=2
revision=3
build_style=gnu-configure
configure_args="--force --disable-gtk-update-checks --disable-df-fetch --harden
$(vopt_enable fdk_aac fdk-aac) $(vopt_enable nvenc) $(vopt_enable qsv)"
@ -12,8 +12,7 @@ makedepends="bzip2-devel ffmpeg6-devel gst-plugins-base1-devel gtk+3-devel
jansson-devel lame-devel libass-devel libbluray-devel libdav1d-devel
libdvdnav-devel libdvdread-devel libgudev-devel libnuma-devel
libsamplerate-devel libtheora-devel libvorbis-devel libvpx-devel libxml2-devel
opus-devel speex-devel x264-devel x265-devel zimg-devel
$(vopt_if svt_av1 libsvt-av1-devel)
opus-devel speex-devel x264-devel x265-devel zimg-devel libsvt-av1-devel
$(vopt_if fdk_aac fdk-aac-devel)
$(vopt_if qsv 'libva-devel libdrm-devel oneVPL-devel')
$(vopt_if nvenc nv-codec-headers)"
@ -27,19 +26,15 @@ distfiles="https://github.com/HandBrake/HandBrake/releases/download/${version}/H
checksum=94ccfe03db917a91650000c510f7fd53f844da19f19ad4b4be1b8f6bc31a8d4c
nocross=yes
build_options="fdk_aac nvenc svt_av1 qsv"
build_options="fdk_aac nvenc qsv"
case "$XBPS_TARGET_MACHINE" in
x86_64*)
CFLAGS="-msse"
build_options_default="nvenc svt_av1 qsv"
build_options_default="nvenc qsv"
;;
i686*)
CFLAGS="-msse"
build_options_default="nvenc"
;;
*)
build_options_default="svt_av1"
;;
esac
@ -50,11 +45,6 @@ pre_configure() {
x265 zimg svt-av1 libvpl; do
vsed -i "/MODULES += contrib\/${module}/d" make/include/main.defs
done
if [[ "$XBPS_TARGET_MACHINE" = "i686"* ]] ; then
vsed -e 's/-lSvtAv1Enc //g' -i gtk/configure.ac
vsed -e 's/ SvtAv1Enc//g' -i test/module.defs
vsed -e 's/ SvtAv1Enc//g' -i libhb/module.defs
fi
}
pre_build() {