9fd4d4b0dc
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.
51 lines
1.6 KiB
Bash
51 lines
1.6 KiB
Bash
# Template file for 'handbrake'
|
|
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
|
|
|
pkgname=handbrake
|
|
version=0.10.5
|
|
revision=1
|
|
wrksrc="HandBrake-${version}"
|
|
build_options="fdk_aac"
|
|
hostmakedepends="automake libtool cmake pkg-config intltool
|
|
python yasm wget m4 gettext-devel glib-devel"
|
|
makedepends="zlib-devel bzip2-devel libnotify-devel gtk+3-devel ncurses-devel
|
|
gst-plugins-base1-devel webkitgtk-devel libgudev-devel x264-devel x265-devel
|
|
dbus-glib-devel fribidi-devel libass-devel fontconfig-devel libxml2-devel
|
|
libogg-devel libdvdnav-devel libdvdread-devel libtheora-devel lame-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"
|
|
short_desc="Multithreaded video transcoder"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2"
|
|
homepage="http://handbrake.fr/"
|
|
distfiles="https://handbrake.fr/rotation.php?file=HandBrake-${version}.tar.bz2>HandBrake-${version}.tar.bz2"
|
|
checksum=fb9230dd121b456f6829d1d25ac8bbf76e503b51c4efc70f0a7fd2bb8607e2f0
|
|
|
|
CFLAGS="-msse"
|
|
|
|
pre_configure() {
|
|
# use system libraries in place of bundled ones
|
|
for module in ffmpeg libvpx libdvdread libdvdnav libbluray x265 fdk-aac; do
|
|
sed -i "/MODULES += contrib\/${module}/d" make/include/main.defs
|
|
done
|
|
}
|
|
do_configure() {
|
|
./configure --prefix=/usr --force --disable-gtk-update-checks $(vopt_enable fdk_aac fdk-aac)
|
|
}
|
|
do_build() {
|
|
unset AS LD
|
|
cd build
|
|
make ${makejobs}
|
|
}
|
|
do_install() {
|
|
cd build
|
|
make DESTDIR=${DESTDIR} install
|
|
}
|
|
|
|
handbrake-cli_package() {
|
|
short_desc+=" - CLI utility"
|
|
pkg_install() {
|
|
vmove usr/bin/HandBrakeCLI
|
|
}
|
|
}
|