mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-02 21:18:51 +02:00
147 lines
3.9 KiB
Bash
147 lines
3.9 KiB
Bash
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"
|
|
COPYRIGHT="2000-2003 Fabrice Bellard
|
|
2003-2015 the FFmpeg developers"
|
|
LICENSE="GNU LGPL v2.1
|
|
GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="http://www.ffmpeg.org/releases/ffmpeg-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="e77823cbd58dfdb61f88059476070bc432d80e3821c14abcf804ef709d2f3fd1"
|
|
SOURCE_DIR="ffmpeg-$portVersion"
|
|
PATCHES="ffmpeg-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="x86_gcc2 !x86 !x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 !x86"
|
|
|
|
GLOBAL_WRITABLE_FILES="
|
|
settings/ffserver.conf
|
|
"
|
|
|
|
PROVIDES="
|
|
ffmpeg$secondaryArchSuffix = $portVersion compat >= 0.10
|
|
lib:libavcodec$secondaryArchSuffix = 53.61.100 compat >= 53
|
|
lib:libavdevice$secondaryArchSuffix = 53.4.100 compat >= 53
|
|
lib:libavfilter$secondaryArchSuffix = 2.61.100 compat >= 2
|
|
lib:libavformat$secondaryArchSuffix = 53.32.100 compat >= 53
|
|
lib:libavutil$secondaryArchSuffix = 51.35.100 compat >= 51
|
|
lib:libpostproc$secondaryArchSuffix = 52.0.100 compat >= 52
|
|
lib:libswresample$secondaryArchSuffix = 0.6.100 compat >= 0
|
|
lib:libswscale$secondaryArchSuffix = 2.1.100 compat >= 2
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libbz2$secondaryArchSuffix
|
|
lib:libmodplug$secondaryArchSuffix
|
|
lib:libogg$secondaryArchSuffix
|
|
lib:libspeex$secondaryArchSuffix
|
|
lib:libtheoradec$secondaryArchSuffix
|
|
lib:libtheoraenc$secondaryArchSuffix
|
|
lib:libvorbis$secondaryArchSuffix
|
|
lib:libvorbisenc$secondaryArchSuffix
|
|
lib:libvpx$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
ffmpeg${secondaryArchSuffix}_devel = $portVersion compat >= 0.10
|
|
devel:libavcodec$secondaryArchSuffix = 53.61.100 compat >= 53
|
|
devel:libavdevice$secondaryArchSuffix = 53.4.100 compat >= 53
|
|
devel:libavfilter$secondaryArchSuffix = 2.61.100 compat >= 2
|
|
devel:libavformat$secondaryArchSuffix = 53.32.100 compat >= 53
|
|
devel:libavutil$secondaryArchSuffix = 51.35.100 compat >= 51
|
|
devel:libpostproc$secondaryArchSuffix = 52.0.100 compat >= 52
|
|
devel:libswresample$secondaryArchSuffix = 0.6.100 compat >= 0
|
|
devel:libswscale$secondaryArchSuffix = 2.1.100 compat >= 2
|
|
"
|
|
REQUIRES_devel="
|
|
ffmpeg$secondaryArchSuffix == $portVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
devel:libbz2$secondaryArchSuffix
|
|
devel:libmodplug$secondaryArchSuffix
|
|
devel:libogg$secondaryArchSuffix
|
|
devel:libspeex$secondaryArchSuffix
|
|
devel:libtheora$secondaryArchSuffix
|
|
devel:libvorbis$secondaryArchSuffix
|
|
devel:libvpx$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:awk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:perl
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:texi2html
|
|
cmd:yasm
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
# patch hard-coded config file path
|
|
sed -i "s,/etc/ffserver.conf,$sysconfDir/ffserver.conf," \
|
|
ffserver.c \
|
|
doc/ffserver.texi
|
|
|
|
# patch hard-coded paths to perl (used only during build so /system is fine)
|
|
sed -i "s,/usr/bin/perl,/system/bin/perl," \
|
|
Doxyfile \
|
|
doc/texi2pod.pl
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
# not an autotools configure
|
|
./configure \
|
|
--prefix=$prefix \
|
|
--bindir=$binDir \
|
|
--datadir=$dataDir/$portName \
|
|
--incdir=$includeDir \
|
|
--libdir=$libDir \
|
|
--shlibdir=$libDir \
|
|
--mandir=$manDir \
|
|
--disable-debug \
|
|
--enable-shared \
|
|
--enable-libmodplug \
|
|
--enable-libvorbis \
|
|
--enable-libspeex \
|
|
--enable-libtheora \
|
|
--enable-libvpx \
|
|
--enable-gpl
|
|
|
|
make $jobArgs CFLAGS="-fno-PIC -std=gnu9x"
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs \
|
|
libavcodec \
|
|
libavdevice \
|
|
libavfilter \
|
|
libavformat \
|
|
libavutil \
|
|
libswresample \
|
|
libswscale \
|
|
libpostproc
|
|
fixPkgconfig
|
|
|
|
# include the documented ffserver.conf
|
|
mkdir -p $docDir
|
|
cp doc/ffserver.conf $docDir
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
|
|
rm -rf $prefix/bin
|
|
}
|