63 lines
2.0 KiB
Bash
63 lines
2.0 KiB
Bash
# Template file for 'handbrake'
|
|
pkgname=handbrake
|
|
version=1.8.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--force --disable-df-fetch --harden
|
|
$(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 gst-plugins-base1-devel gtk4-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
|
|
$(vopt_if fdk_aac fdk-aac-devel)
|
|
$(vopt_if qsv 'libva-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/"
|
|
changelog="https://github.com/HandBrake/HandBrake/releases"
|
|
distfiles="https://github.com/HandBrake/HandBrake/releases/download/${version}/HandBrake-${version}-source.tar.bz2"
|
|
checksum=f411d54b1760b61b2361343ffa8f9d857f228cd477f885659e0322b619adee90
|
|
nocross=yes
|
|
|
|
build_options="fdk_aac nvenc qsv"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*)
|
|
CFLAGS="-msse"
|
|
build_options_default="nvenc qsv"
|
|
LDFLAGS="-Wl,--copy-dt-needed-entries" # libva bs
|
|
;;
|
|
i686*)
|
|
CFLAGS="-msse"
|
|
;;
|
|
esac
|
|
|
|
pre_configure() {
|
|
# use system libraries, don't download them
|
|
mv contrib/ffmpeg bkffmpeg
|
|
rm -rf contrib/*
|
|
mv bkffmpeg contrib/ffmpeg
|
|
for module in fdk-aac libbluray libdav1d libdvdnav libdvdread nvenc \
|
|
x264 x265 zimg svt-av1 libvpl; do
|
|
vsed -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
|
|
}
|
|
}
|