mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-30 01:12:58 +02:00
handbrake: update to 0.10.5
Use system x265 (patch from Gentoo). Use system libvpx (patch from FreeBSD). Use system ffmpeg (patch from upstream). Add fdk_acc build option (off). Close #3987.
This commit is contained in:
parent
822937a0ae
commit
9fd4d4b0dc
4 changed files with 109 additions and 13 deletions
|
@ -0,0 +1,13 @@
|
||||||
|
Written by: Peter Foley <pefoley2@pefoley.com>
|
||||||
|
Gentoo Bug: #552792
|
||||||
|
|
||||||
|
--- test/module.defs
|
||||||
|
+++ test/module.defs
|
||||||
|
@@ -25,6 +25,7 @@
|
||||||
|
|
||||||
|
ifeq (1,$(FEATURE.x265))
|
||||||
|
TEST.GCC.D += USE_X265
|
||||||
|
+ TEST.GCC.l += x265
|
||||||
|
endif
|
||||||
|
|
||||||
|
TEST.GCC.l += $(foreach m,$(MODULES.NAMES),$($m.OSL.libs))
|
|
@ -0,0 +1,41 @@
|
||||||
|
From d5bdc7e2590faa0a397d13730491761410ca24fb Mon Sep 17 00:00:00 2001
|
||||||
|
From: Sean McGovern <gseanmcg@gmail.com>
|
||||||
|
Date: Wed, 11 Nov 2015 17:26:49 -0500
|
||||||
|
Subject: [PATCH] muxavformat: check for presence of AV_PKT_DATA_FALLBACK_TRACK
|
||||||
|
|
||||||
|
---
|
||||||
|
libhmuxavformat.c | 7 ++++++-
|
||||||
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git libhb/muxavformat.c libhb/muxavformat.c
|
||||||
|
index aac09b7..7879d70 100644
|
||||||
|
--- libhb/muxavformat.c
|
||||||
|
+++ libhb/muxavformat.c
|
||||||
|
@@ -121,7 +121,10 @@ static int avformatInit( hb_mux_object_t * m )
|
||||||
|
hb_mux_data_t * track;
|
||||||
|
int meta_mux;
|
||||||
|
int max_tracks;
|
||||||
|
- int ii, jj, ret;
|
||||||
|
+ int ii, ret;
|
||||||
|
+#ifdef AV_PKT_DATA_FALLBACK_TRACK
|
||||||
|
+ int jj;
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
int clock_min, clock_max, clock;
|
||||||
|
hb_video_framerate_get_limits(&clock_min, &clock_max, &clock);
|
||||||
|
@@ -593,6 +596,7 @@ static int avformatInit( hb_mux_object_t * m )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+#ifdef AV_PKT_DATA_FALLBACK_TRACK
|
||||||
|
// Check for audio track associations
|
||||||
|
for (ii = 0; ii < hb_list_count(job->list_audio); ii++)
|
||||||
|
{
|
||||||
|
@@ -642,6 +646,7 @@ static int avformatInit( hb_mux_object_t * m )
|
||||||
|
} break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
char * subidx_fmt =
|
||||||
|
"size: %dx%d\n"
|
|
@ -0,0 +1,42 @@
|
||||||
|
--- /dev/null 1970-01-01 00:00:00 UTC
|
||||||
|
+++ contrib/ffmpeg/A90-libvpx-1.5.0.patch
|
||||||
|
@@ -0,0 +1,39 @@
|
||||||
|
+commit 6540fe0
|
||||||
|
+Author: James Zern <jzern@google.com>
|
||||||
|
+Date: Mon Oct 19 22:44:11 2015 -0700
|
||||||
|
+
|
||||||
|
+ libvpxenc: remove some unused ctrl id mappings
|
||||||
|
+
|
||||||
|
+ VP8E_UPD_ENTROPY, VP8E_UPD_REFERENCE, VP8E_USE_REFERENCE were removed
|
||||||
|
+ from libvpx and the remaining values were never used here
|
||||||
|
+
|
||||||
|
+ Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
|
||||||
|
+ Signed-off-by: James Zern <jzern@google.com>
|
||||||
|
+---
|
||||||
|
+ libavcodec/libvpxenc.c | 8 --------
|
||||||
|
+ 1 file changed, 8 deletions(-)
|
||||||
|
+
|
||||||
|
+diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
|
||||||
|
+index 5f39783..992122c 100644
|
||||||
|
+--- a/libavcodec/libvpxenc.c
|
||||||
|
++++ b/libavcodec/libvpxenc.c
|
||||||
|
+@@ -104,19 +104,11 @@ typedef struct VP8EncoderContext {
|
||||||
|
+
|
||||||
|
+ /** String mappings for enum vp8e_enc_control_id */
|
||||||
|
+ static const char *const ctlidstr[] = {
|
||||||
|
+- [VP8E_UPD_ENTROPY] = "VP8E_UPD_ENTROPY",
|
||||||
|
+- [VP8E_UPD_REFERENCE] = "VP8E_UPD_REFERENCE",
|
||||||
|
+- [VP8E_USE_REFERENCE] = "VP8E_USE_REFERENCE",
|
||||||
|
+- [VP8E_SET_ROI_MAP] = "VP8E_SET_ROI_MAP",
|
||||||
|
+- [VP8E_SET_ACTIVEMAP] = "VP8E_SET_ACTIVEMAP",
|
||||||
|
+- [VP8E_SET_SCALEMODE] = "VP8E_SET_SCALEMODE",
|
||||||
|
+ [VP8E_SET_CPUUSED] = "VP8E_SET_CPUUSED",
|
||||||
|
+ [VP8E_SET_ENABLEAUTOALTREF] = "VP8E_SET_ENABLEAUTOALTREF",
|
||||||
|
+ [VP8E_SET_NOISE_SENSITIVITY] = "VP8E_SET_NOISE_SENSITIVITY",
|
||||||
|
+- [VP8E_SET_SHARPNESS] = "VP8E_SET_SHARPNESS",
|
||||||
|
+ [VP8E_SET_STATIC_THRESHOLD] = "VP8E_SET_STATIC_THRESHOLD",
|
||||||
|
+ [VP8E_SET_TOKEN_PARTITIONS] = "VP8E_SET_TOKEN_PARTITIONS",
|
||||||
|
+- [VP8E_GET_LAST_QUANTIZER] = "VP8E_GET_LAST_QUANTIZER",
|
||||||
|
+ [VP8E_SET_ARNR_MAXFRAMES] = "VP8E_SET_ARNR_MAXFRAMES",
|
||||||
|
+ [VP8E_SET_ARNR_STRENGTH] = "VP8E_SET_ARNR_STRENGTH",
|
||||||
|
+ [VP8E_SET_ARNR_TYPE] = "VP8E_SET_ARNR_TYPE",
|
|
@ -2,36 +2,36 @@
|
||||||
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
||||||
|
|
||||||
pkgname=handbrake
|
pkgname=handbrake
|
||||||
version=0.10.2
|
version=0.10.5
|
||||||
revision=2
|
revision=1
|
||||||
wrksrc="HandBrake-${version}"
|
wrksrc="HandBrake-${version}"
|
||||||
|
build_options="fdk_aac"
|
||||||
hostmakedepends="automake libtool cmake pkg-config intltool
|
hostmakedepends="automake libtool cmake pkg-config intltool
|
||||||
python yasm wget m4 gettext-devel"
|
python yasm wget m4 gettext-devel glib-devel"
|
||||||
makedepends="zlib-devel bzip2-devel libnotify-devel gtk+3-devel ncurses-devel
|
makedepends="zlib-devel bzip2-devel libnotify-devel gtk+3-devel ncurses-devel
|
||||||
gst-plugins-base1-devel webkitgtk-devel libgudev-devel x264-devel
|
gst-plugins-base1-devel webkitgtk-devel libgudev-devel x264-devel x265-devel
|
||||||
dbus-glib-devel fribidi-devel libass-devel fontconfig-devel libxml2-devel
|
dbus-glib-devel fribidi-devel libass-devel fontconfig-devel libxml2-devel
|
||||||
libogg-devel libdvdnav-devel libdvdread-devel libtheora-devel lame-devel
|
libogg-devel libdvdnav-devel libdvdread-devel libtheora-devel lame-devel
|
||||||
libsamplerate-devel libbluray-devel librsvg-devel"
|
libsamplerate-devel libbluray-devel librsvg-devel libvpx-devel ffmpeg-devel
|
||||||
|
$(vopt_if fdk_aac fdk-aac-devel)"
|
||||||
depends="gst-plugins-good1 desktop-file-utils hicolor-icon-theme"
|
depends="gst-plugins-good1 desktop-file-utils hicolor-icon-theme"
|
||||||
short_desc="Multithreaded video transcoder"
|
short_desc="Multithreaded video transcoder"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
homepage="http://handbrake.fr/"
|
homepage="http://handbrake.fr/"
|
||||||
distfiles="https://handbrake.fr/rotation.php?file=HandBrake-${version}.tar.bz2>HandBrake-${version}.tar.bz2"
|
distfiles="https://handbrake.fr/rotation.php?file=HandBrake-${version}.tar.bz2>HandBrake-${version}.tar.bz2"
|
||||||
checksum=4cc3828393b26a982dbe00febd700c5090d3443c1d45492e0b373e02da73c699
|
checksum=fb9230dd121b456f6829d1d25ac8bbf76e503b51c4efc70f0a7fd2bb8607e2f0
|
||||||
|
|
||||||
CFLAGS="-msse"
|
CFLAGS="-msse"
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
# Use more system libs
|
# use system libraries in place of bundled ones
|
||||||
sed -i \
|
for module in ffmpeg libvpx libdvdread libdvdnav libbluray x265 fdk-aac; do
|
||||||
-e '/MODULES += contrib\/libbluray/d' \
|
sed -i "/MODULES += contrib\/${module}/d" make/include/main.defs
|
||||||
-e '/MODULES += contrib\/libdvdnav/d' \
|
done
|
||||||
-e '/MODULES += contrib\/libdvdread/d' \
|
|
||||||
make/include/main.defs
|
|
||||||
}
|
}
|
||||||
do_configure() {
|
do_configure() {
|
||||||
./configure --prefix=/usr --force --disable-gtk-update-checks
|
./configure --prefix=/usr --force --disable-gtk-update-checks $(vopt_enable fdk_aac fdk-aac)
|
||||||
}
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
unset AS LD
|
unset AS LD
|
||||||
|
|
Loading…
Add table
Reference in a new issue