Files
haikuports/media-video/handbrake/handbrake-0.10.5.recipe
fbrosson b7c7154f87 handbrake: bump revision, miscellaneous minor changes.
* Revision bump required after the update of libass.
* Drop unneeded SOURCE_FILENAME.
* Fix version info in rdef file and use patterns.
* Add missing $secondaryArchSuffix to cmd:libtoolize.
2017-02-07 12:02:15 +00:00

128 lines
3.6 KiB
Bash

SUMMARY="A tool to convert video from nearly any format to modern codecs"
DESCRIPTION="Handbrake is an open-source, GPL-licensed, multiplatform, \
multithreaded video transcoder.
Convert from many common multimedia file formats, including unprotected \
DVD or BluRay sources to a handful of modern output file formats."
HOMEPAGE="http://handbrake.fr/"
LICENSE="GNU GPL v2"
COPYRIGHT="2003-2016 HandBrake Team"
REVISION="2"
SOURCE_URI="http://download.handbrake.fr/releases/$portVersion/HandBrake-$portVersion.tar.bz2"
CHECKSUM_SHA256="fb9230dd121b456f6829d1d25ac8bbf76e503b51c4efc70f0a7fd2bb8607e2f0"
SOURCE_DIR="HandBrake-$portVersion"
PATCHES="handbrake-$portVersion.patchset"
ADDITIONAL_FILES="HandBrake.rdef"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
handbrake$secondaryArchSuffix = $portVersion
cmd:HandBrakeCLI
# app:HandBrake
"
REQUIRES="
haiku$secondaryArchSuffix
lib:liba52$secondaryArchSuffix
lib:libavcodec$secondaryArchSuffix >= 57
lib:libmpeg2$secondaryArchSuffix
lib:libmp4v2$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
lib:libtheora$secondaryArchSuffix
lib:libbluray$secondaryArchSuffix
lib:libdvdnav$secondaryArchSuffix
lib:libdvdread$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libsamplerate$secondaryArchSuffix
lib:libmkv$secondaryArchSuffix
lib:libmp3lame$secondaryArchSuffix
lib:libass$secondaryArchSuffix
lib:libx264$secondaryArchSuffix
lib:libvorbis$secondaryArchSuffix
lib:libvpx$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libfontconfig$secondaryArchSuffix
lib:libfribidi$secondaryArchSuffix
lib:libbz2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:liba52$secondaryArchSuffix
devel:libavcodec$secondaryArchSuffix >= 57
devel:libmpeg2$secondaryArchSuffix
devel:libmp4v2$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
devel:libtheora$secondaryArchSuffix
devel:libbluray$secondaryArchSuffix
devel:libdvdnav$secondaryArchSuffix
devel:libdvdread$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libsamplerate$secondaryArchSuffix
devel:libmkv$secondaryArchSuffix
devel:libmp3lame$secondaryArchSuffix
devel:libass$secondaryArchSuffix
devel:libx264$secondaryArchSuffix
devel:libvorbis$secondaryArchSuffix
devel:libvpx$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libfontconfig$secondaryArchSuffix
devel:libfribidi$secondaryArchSuffix
devel:libbz2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:libtoolize$secondaryArchSuffix
cmd:autoconf
cmd:automake
cmd:patch
cmd:python
cmd:m4
cmd:sed
cmd:tar
"
# Please check the file state.md in this directory for a detailed description
# of the current state of the HandBrake port
PATCH()
{
sed -i 's/MODULES += contrib\/.*//g' make/include/main.defs
}
BUILD()
{
./configure --prefix=$prefix --force --disable-x265
cd build
make
cd ../haiku
# make
}
INSTALL()
{
cd build
make install
# cd ../haiku
# cp haiku/HandBrake $appsDir
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
$portDir/additional-files/HandBrake.rdef > HandBrake.rdef
addResourcesToBinaries HandBrake.rdef $prefix/bin/HandBrakeCLI
# addResourcesToBinaries handBrake.rdef $appsDir/HandBrake
# addAppDeskbarSymlink $appsDir/HandBrake
}