void-packages/srcpkgs/handbrake/template
Christian Buschau 5af06c564d handbrake: rebuild against x265-2.9_1
[ci skip]
2019-01-18 21:00:24 +01:00

49 lines
1.6 KiB
Bash

# Template file for 'handbrake'
pkgname=handbrake
version=1.2.0
revision=2
wrksrc="HandBrake-${version}"
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
build_style=configure
configure_args="--prefix=/usr --force --disable-gtk-update-checks
$(vopt_enable fdk_aac fdk-aac)"
make_build_args="-C build"
make_install_args="-C build"
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 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 jansson-devel
libsamplerate-devel libbluray-devel librsvg-devel libvpx-devel ffmpeg-devel
opus-devel speex-devel nv-codec-headers $(vopt_if fdk_aac fdk-aac-devel)"
depends="gst-plugins-good1 desktop-file-utils hicolor-icon-theme"
short_desc="Multithreaded video transcoder"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="GPL-2.0-only"
homepage="https://handbrake.fr/"
distfiles="https://download2.handbrake.fr/${version}/HandBrake-${version}-source.tar.bz2"
checksum=113b398a50147d48c8777e6ff2c4de6825af5f1079b3822e41bf0eacec9c940d
nocross=yes
build_options="fdk_aac"
CFLAGS="-msse"
pre_configure() {
# use system libraries in place of bundled ones
for module in ffmpeg libvpx libdvdread libdvdnav x265 fdk-aac; do
sed -i "/MODULES += contrib\/${module}/d" make/include/main.defs
done
}
pre_build() {
unset AS LD
}
handbrake-cli_package() {
short_desc+=" - CLI utility"
pkg_install() {
vmove usr/bin/HandBrakeCLI
}
}