mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
Add a new file state.md to indicate what state the port is in. This also marks HandBrake 0.10.2 as broken on x86_gcc2 as there is no version of FFmpeg which works on x86_gcc2 that provides the library version required by HandBrake.
116 lines
3.2 KiB
Bash
116 lines
3.2 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://www.handbrake.fr"
|
|
LICENSE="GNU GPL v2"
|
|
COPYRIGHT="2003-2015 HandBrake Team"
|
|
REVISION="1"
|
|
SOURCE_URI="https://handbrake.fr/rotation.php?file=HandBrake-$portVersion.tar.bz2"
|
|
SOURCE_FILENAME="HandBrake-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="4cc3828393b26a982dbe00febd700c5090d3443c1d45492e0b373e02da73c699"
|
|
SOURCE_DIR="HandBrake-$portVersion"
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PATCHES="handbrake-0.10.2.patchset"
|
|
|
|
PROVIDES="
|
|
handbrake$secondaryArchSuffix = $portVersion
|
|
cmd:HandBrakeCLI
|
|
# app:HandBrake
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:liba52$secondaryArchSuffix
|
|
lib:libavcodec$secondaryArchSuffix >= 56
|
|
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
|
|
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
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:patch
|
|
cmd:python
|
|
cmd:m4
|
|
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
|
|
|
|
# addResourcesToBinaries handbrake.rdef $appsDir/HandBrake
|
|
# addAppDeskbarSymlink $appsDir/HandBrake
|
|
}
|