Skip to content

Commit

Permalink
handbrake: update to 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zlice committed Jul 22, 2024
1 parent 1b0ca71 commit ccc0fc8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 13 deletions.
11 changes: 6 additions & 5 deletions srcpkgs/handbrake/patches/fix-missing-x265-link-flag.patch
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
--- a/gtk/configure.ac
+++ b/gtk/configure.ac
@@ -203,7 +203,7 @@

AM_CONDITIONAL([MINGW], [test "x$mingw_flag" = "xyes"])
-HB_LIBS="$HB_LIBS -lhandbrake -lavformat -lavfilter -lavcodec -lavutil -ldav1d -lswresample -lpostproc -ldvdnav -ldvdread -lmp3lame -lvorbis -lvorbisenc -logg -lswscale -ltheoraenc -ltheoradec -lvpx -lz -lbz2 -lbluray -lass -lfontconfig -lfreetype -lxml2 -ljansson -lopus -lspeex -lturbojpeg -llzma -lzimg"
+HB_LIBS="$HB_LIBS -lhandbrake -lavformat -lavfilter -lavcodec -lavutil -ldav1d -lswresample -lpostproc -ldvdnav -ldvdread -lmp3lame -lvorbis -lvorbisenc -logg -lswscale -ltheoraenc -ltheoradec -lvpx -lz -lbz2 -lbluray -lass -lfontconfig -lfreetype -lxml2 -ljansson -lopus -lspeex -lturbojpeg -llzma -lzimg -ldl"

-HB_LIBS="$HB_LIBS -lhandbrake -lavformat -lavfilter -lavcodec -lavutil -ldav1d -lswresample -lpostproc -ldvdnav -ldvdread -lmp3lame -lvorbis -lvorbisenc -logg -lswscale -ltheoraenc -ltheoradec -lvpx -lz -lbz2 -lbluray -lass -lfontconfig -lfreetype -lxml2 -ljansson -lopus -lspeex -lturbojpeg -llzma -lzimg -lSvtAv1Enc"
+HB_LIBS="$HB_LIBS -lhandbrake -lavformat -lavfilter -lavcodec -lavutil -ldav1d -lswresample -lpostproc -ldvdnav -ldvdread -lmp3lame -lvorbis -lvorbisenc -logg -lswscale -ltheoraenc -ltheoradec -lvpx -lz -lbz2 -lbluray -lass -lfontconfig -lfreetype -lxml2 -ljansson -lopus -lspeex -lturbojpeg -llzma -lzimg -lSvtAv1Enc -ldl"
HB_CPPFLAGS="$HB_CPPFLAGS $HBINC"

PKG_CHECK_MODULES([x264], [x264], sys_x264=yes, sys_x264=no)

--- a/test/module.defs
+++ b/test/module.defs
@@ -69,6 +69,9 @@
Expand Down
15 changes: 15 additions & 0 deletions srcpkgs/handbrake/patches/libhb-vpl-include.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--- a/libhb/module.defs 2023-01-22 11:36:49.000000000 -0500
+++ b/libhb/module.defs 2023-04-03 22:37:52.395467010 -0400
@@ -46,11 +46,7 @@
LIBHB.GCC.I += $(LIBHB.build/) $(CONTRIB.build/)include

ifeq (1,$(FEATURE.qsv))
- ifeq ($(HOST.system),freebsd))
- LIBHB.GCC.I += $(LOCALBASE)/include/vpl
- else
- LIBHB.GCC.I += $(CONTRIB.build/)include/vpl
- endif
+ LIBHB.GCC.I += /usr/include/vpl
endif

ifneq (,$(filter $(HOST.system),freebsd netbsd openbsd))
17 changes: 9 additions & 8 deletions srcpkgs/handbrake/template
Original file line number Diff line number Diff line change
@@ -1,43 +1,44 @@
# Template file for 'handbrake'
pkgname=handbrake
version=1.5.1
version=1.6.1
revision=1
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 fdk_aac fdk-aac) $(vopt_enable nvenc) $(vopt_enable qsv)"
make_build_args="-C ${XBPS_TRIPLET}"
make_install_args="-C ${XBPS_TRIPLET}"
hostmakedepends="automake cmake gettext-devel glib-devel intltool libtool m4 meson nasm pkg-config python3"
makedepends="bzip2-devel ffmpeg-devel gst-plugins-base1-devel gtk+3-devel
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
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)"
depends="desktop-file-utils gst-plugins-good1 hicolor-icon-theme"
short_desc="Multithreaded video transcoder"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://handbrake.fr/"
distfiles="https://github.com/HandBrake/HandBrake/releases/download/${version}/HandBrake-${version}-source.tar.bz2"
checksum=3999fe06d5309c819799a73a968a8ec3840e7840c2b64af8f5cdb7fd8c9430f0
checksum=94ccfe03db917a91650000c510f7fd53f844da19f19ad4b4be1b8f6bc31a8d4c
nocross=yes

build_options="fdk_aac nvenc"
build_options="fdk_aac nvenc qsv"

case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*)
CFLAGS="-msse"
build_options_default="nvenc"
build_options_default="nvenc qsv"
;;
esac

pre_configure() {
# use system libraries, don't download them
rm -rf contrib/
for module in fdk-aac ffmpeg libbluray libdav1d libdvdnav libdvdread nvenc \
x265 zimg; do
x265 zimg svt-av1 libvpl; do
vsed -i "/MODULES += contrib\/${module}/d" make/include/main.defs
done
}
Expand Down

0 comments on commit ccc0fc8

Please sign in to comment.