forked from ports/contrib
43 lines
1.5 KiB
Plaintext
43 lines
1.5 KiB
Plaintext
# Description: open source video transcoder
|
|
# URL: https://handbrake.fr/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: faad2 jansson lame libass libdvdcss libjpeg-turbo libsamplerate libtheora libva libvpx libxml2 numactl speex x264
|
|
|
|
name=handbrake
|
|
version=1.7.3
|
|
release=1
|
|
_HASH=86156a66c0d5ccc306487c1ff961a7b2328961b3
|
|
_HASHDATE="2024-02-11 21:55:00 +0000"
|
|
source=(https://github.com/HandBrake/HandBrake/releases/download/$version/$name-$version-source.tar.bz2)
|
|
|
|
build() {
|
|
prt-get isinst gtk3 || PKGMK_HANDBRAKE+='--disable-gtk'
|
|
|
|
## from inside a git checkout..
|
|
#./HandBrake-$version/scripts/repo-info.sh HandBrake-$version > HandBrake-$version/version.txt
|
|
echo "URL=https://github.com/HandBrake/HandBrake.git" >> HandBrake-$version/version.txt
|
|
echo "HASH=$_HASH" >> HandBrake-$version/version.txt
|
|
echo "SHORTHASH=${_HASH:0:9}" >> HandBrake-$version/version.txt
|
|
echo "TAG=$version" >> HandBrake-$version/version.txt
|
|
echo "TAG_HASH=${_HASH:0:9}" >> HandBrake-$version/version.txt
|
|
echo "REV=0" >> HandBrake-$version/version.txt
|
|
echo "BRANCH=" >> HandBrake-$version/version.txt
|
|
echo "REMOTE=https://github.com/HandBrake/HandBrake.git" >> HandBrake-$version/version.txt
|
|
echo "DATE=$_HASHDATE" >> HandBrake-$version/version.txt
|
|
|
|
./HandBrake-$version/configure $PKGMK_HANDBRAKE \
|
|
--prefix=/usr \
|
|
--launch \
|
|
--launch-jobs=$(nproc) \
|
|
--build=build \
|
|
--lto \
|
|
--enable-fdk-aac
|
|
|
|
mkdir -p $SRC/build/build_tmp
|
|
|
|
make -C build TMPDIR=$SRC/build/build_tmp
|
|
make -C build DESTDIR=$PKG install
|
|
|
|
rm -rf $PKG/usr/share/locale/
|
|
}
|