mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
ffmpeg: convert 0.10.2 recipe to an actual recipe
This commit is contained in:
@@ -1,30 +1,119 @@
|
||||
DESCRIPTION="FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec - the leading audio/video codec library."
|
||||
HOMEPAGE="http://www.ffmpeg.org"
|
||||
SUMMARY="Audio and video recording, conversion, and streaming library"
|
||||
DESCRIPTION="FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec - the leading audio/video codec library."
|
||||
HOMEPAGE="http://www.ffmpeg.org"
|
||||
LICENSE="
|
||||
GNU LGPL v2.1
|
||||
GNU GPL v2
|
||||
"
|
||||
COPYRIGHT="
|
||||
2000-2003 Fabrice Bellard
|
||||
2003-2012 the FFmpeg developers
|
||||
"
|
||||
SRC_URI="http://www.ffmpeg.org/releases/ffmpeg-0.10.2.tar.bz2"
|
||||
CHECKSUM_MD5="de1bd5fc4bbf3ef730a5361ee596fedd"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="media-libs/libogg >= 1.3.0
|
||||
media-libs/speex >= 1.2rc1
|
||||
media-libs/libtheora >= 1.1.0
|
||||
media-libs/libvorbis >= 1.3.2
|
||||
media-libs/libvpx >= 1.0.0"
|
||||
ARCHITECTURES="x86_gcc2 ?x86"
|
||||
|
||||
PATCHES="ffmpeg-0.10.2-gcc2.patch"
|
||||
|
||||
PROVIDES="
|
||||
ffmpeg = $portVersion compat >= 0.10
|
||||
cmd:ffmpeg = $portVersion compat >= 0.10
|
||||
cmd:ffprobe = $portVersion compat >= 0.10
|
||||
cmd:ffserver = $portVersion compat >= 0.10
|
||||
lib:libavcodec = 53.61.100 compat >= 53
|
||||
lib:libavdevice = 53.4.100 compat >= 53
|
||||
lib:libavfilter = 2.61.100 compat >= 2
|
||||
lib:libavformat = 53.32.100 compat >= 53
|
||||
lib:libavutil = 51.35.100 compat >= 51
|
||||
lib:libswresample = 0.6.100 compat >= 0
|
||||
lib:libswscale = 2.1.100 compat >= 2
|
||||
"
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
lib:libogg
|
||||
lib:libspeex
|
||||
lib:libtheoradec
|
||||
lib:libtheoraenc
|
||||
lib:libvorbis
|
||||
lib:libvorbisenc
|
||||
lib:libvpx
|
||||
lib:libz
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:make
|
||||
cmd:pkg_config
|
||||
cmd:yasm
|
||||
devel:libogg
|
||||
devel:libspeex
|
||||
devel:libtheora
|
||||
devel:libvorbis
|
||||
devel:libvpx
|
||||
devel:libz
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
"
|
||||
|
||||
SOURCE_DIR="$portVersionedName"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd ffmpeg-0.10.2
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` --disable-debug --enable-shared \
|
||||
--enable-libvorbis --enable-libspeex --enable-libtheora --enable-libvpx \
|
||||
--datadir=`finddir B_COMMON_DATA_DIRECTORY`
|
||||
make
|
||||
# not an auto tools configure
|
||||
./configure \
|
||||
--prefix=$prefix \
|
||||
--datadir=$dataDir/ffmpeg \
|
||||
--incdir=$includeDir \
|
||||
--mandir=$manDir \
|
||||
--disable-debug \
|
||||
--enable-shared \
|
||||
--enable-libvorbis \
|
||||
--enable-libspeex \
|
||||
--enable-libtheora \
|
||||
--enable-libvpx
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd ffmpeg-0.10.2
|
||||
make install
|
||||
|
||||
rm $binDir/ffprobe
|
||||
# TODO: Determine and fix what is wrong with ffprobe! The executable
|
||||
# seems to be broken. The NEEDED entries in the dynamic section look
|
||||
# weird and the runtime loader fails relocating with "Operation not
|
||||
# allowed".
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libavcodec \
|
||||
libavdevice \
|
||||
libavfilter \
|
||||
libavformat \
|
||||
libavutil \
|
||||
libswresample \
|
||||
libswscale
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
LICENSE="GNU LGPL v2.1
|
||||
GNU GPL v2"
|
||||
COPYRIGHT="2000-2003 Fabrice Bellard
|
||||
2003-2012 the FFmpeg developers"
|
||||
# ----- devel package -------------------------------------------------------
|
||||
|
||||
SUMMARY_devel="The libtheora development files"
|
||||
PROVIDES_devel="
|
||||
ffmpeg_devel = $portVersion compat >= 0.10
|
||||
devel:libavcodec = 53.61.100 compat >= 53
|
||||
devel:libavdevice = 53.4.100 compat >= 53
|
||||
devel:libavfilter = 2.61.100 compat >= 2
|
||||
devel:libavformat = 53.32.100 compat >= 53
|
||||
devel:libavutil = 51.35.100 compat >= 51
|
||||
devel:libswresample = 0.6.100 compat >= 0
|
||||
devel:libswscale = 2.1.100 compat >= 2
|
||||
"
|
||||
REQUIRES_devel="
|
||||
ffmpeg == $portVersion
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user