Files
haikuports/media-libs/gstreamer/gstreamer-0.10.36.recipe
2015-11-25 05:35:02 +00:00

96 lines
2.8 KiB
Bash

SUMMARY="Open source multimedia framework"
DESCRIPTION="GStreamer is a library for constructing graphs of media-handling components. \
The applications it supports range from simple Ogg/Vorbis playback, audio/video streaming \
to complex audio (mixing) and video (non-linear editing) processing."
HOMEPAGE="http://gstreamer.freedesktop.org/"
COPYRIGHT="Erik Walthinsen"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$portVersion.tar.xz"
CHECKSUM_SHA256="9151aa108c177054387885763fa0e433e76780f7c5655c70a5390f2a6c6871da"
PATCHES="gstreamer-0.10.36.patchset"
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
gstreamer$secondaryArchSuffix = $portVersion
lib:libgstreamer$secondaryArchSuffix = $portVersion
lib:libgstbase$secondaryArchSuffix = $portVersion
lib:libgstcheck$secondaryArchSuffix = $portVersion
lib:libgstcontroller$secondaryArchSuffix = $portVersion
lib:libgstdataprotocol$secondaryArchSuffix = $portVersion
lib:libgstnet$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
"
PROVIDES_devel="
gstreamer${secondaryArchSuffix}_devel = $portVersion
devel:libgstreamer$secondaryArchSuffix = $portVersion
devel:libgstbase$secondaryArchSuffix = $portVersion
devel:libgstcheck$secondaryArchSuffix = $portVersion
devel:libgstcontroller$secondaryArchSuffix = $portVersion
devel:libgstdataprotocol$secondaryArchSuffix = $portVersion
devel:libgstnet$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
gstreamer$secondaryArchSuffix == $portVersion base
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libglib_2.0$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtool
cmd:aclocal
cmd:autoconf
cmd:libtoolize
cmd:make
cmd:grep
cmd:bison
cmd:flex
cmd:python
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
export PKG_CONFIG_LIBDIR=/system/develop/lib/x86/pkgconfig/
runConfigure ./configure --disable-tests --disable-examples \
--disable-failing-tests --disable-nls
find -type f -name '*' -exec sed -i 's/-lpthread/-lroot/g' {} \;
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libgstreamer-0.10 libgstcheck-0.10 libgstbase-0.10 \
libgstcontroller-0.10 libgstdataprotocol-0.10 libgstnet-0.10
fixPkgconfig
cd $libDir
for i in lib*.so.0.30.*;do
ln -fs $i $(echo $i | cut -f1,2 -d.).so
done
mv -f $developDir/headers/x86/gstreamer-0.10/gst $developDir/headers/x86/
rm -rf $developDir/headers/x86/gstreamer-0.10
# devel package
packageEntries devel \
$developDir
}