handbrake: add recipe for version 1.0.3.

This commit is contained in:
Jerome Duval
2017-03-06 15:25:31 +01:00
parent 2a361c4ce0
commit df75e06648
2 changed files with 4362 additions and 0 deletions

View File

@@ -0,0 +1,133 @@
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="1"
SOURCE_URI="http://download.handbrake.fr/releases/$portVersion/HandBrake-$portVersion.tar.bz2"
CHECKSUM_SHA256="591fb489edd6146136f0a92f895c2098365f612ad308d5ff9dc83223ad73ed27"
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:libass$secondaryArchSuffix
lib:libavcodec$secondaryArchSuffix >= 57
lib:libbluray$secondaryArchSuffix
lib:libbz2$secondaryArchSuffix
lib:libdvdnav$secondaryArchSuffix
lib:libdvdread$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
lib:libfontconfig$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libfribidi$secondaryArchSuffix
lib:libharfbuzz$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libjansson$secondaryArchSuffix
lib:libmkv$secondaryArchSuffix
lib:libmp3lame$secondaryArchSuffix
lib:libmp4v2$secondaryArchSuffix
lib:libmpeg2$secondaryArchSuffix
lib:libopus$secondaryArchSuffix
lib:libsamplerate$secondaryArchSuffix
lib:libtheora$secondaryArchSuffix
lib:libvorbis$secondaryArchSuffix
lib:libvpx$secondaryArchSuffix
lib:libx264$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:liba52$secondaryArchSuffix
devel:libass$secondaryArchSuffix
devel:libavcodec$secondaryArchSuffix >= 57
devel:libbluray$secondaryArchSuffix >= 2
devel:libbz2$secondaryArchSuffix
devel:libdvdnav$secondaryArchSuffix
devel:libdvdread$secondaryArchSuffix
devel:libfontconfig$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libfribidi$secondaryArchSuffix
devel:libharfbuzz$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libjansson$secondaryArchSuffix
devel:libmkv$secondaryArchSuffix
devel:libmp3lame$secondaryArchSuffix
devel:libmp4v2$secondaryArchSuffix
devel:libmpeg2$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
devel:libopus$secondaryArchSuffix
devel:libsamplerate$secondaryArchSuffix
devel:libtheora$secondaryArchSuffix
devel:libvorbis$secondaryArchSuffix
devel:libvpx$secondaryArchSuffix
devel:libx264$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
devel:libz$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
}

File diff suppressed because it is too large Load Diff