handbrake: revbump for x265-3.6

This commit is contained in:
zlice 2024-08-02 17:33:05 -04:00 committed by classabbyamp
parent 3394bebcc8
commit 3c88072937
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5
1 changed files with 18 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'handbrake'
pkgname=handbrake
version=1.6.1
revision=1
revision=2
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,7 +12,8 @@ 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 libsvt-av1-devel
opus-devel speex-devel x264-devel x265-devel zimg-devel
$(vopt_if svt_av1 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)"
@ -26,12 +27,19 @@ distfiles="https://github.com/HandBrake/HandBrake/releases/download/${version}/H
checksum=94ccfe03db917a91650000c510f7fd53f844da19f19ad4b4be1b8f6bc31a8d4c
nocross=yes
build_options="fdk_aac nvenc qsv"
build_options="fdk_aac nvenc svt_av1 qsv"
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*)
x86_64*)
CFLAGS="-msse"
build_options_default="nvenc qsv"
build_options_default="nvenc svt_av1 qsv"
;;
i686*)
CFLAGS="-msse"
build_options_default="nvenc"
;;
*)
build_options_default="svt_av1"
;;
esac
@ -42,6 +50,11 @@ 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() {