mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
gst_plugins_bad: add recipe for version 0.10.23
This commit is contained in:
110
media-libs/gst_plugins_bad/gst_plugins_bad-0.10.23.recipe
Normal file
110
media-libs/gst_plugins_bad/gst_plugins_bad-0.10.23.recipe
Normal file
@@ -0,0 +1,110 @@
|
||||
SUMMARY="GStreamer Bad Plug-ins"
|
||||
DESCRIPTION="GStreamer Bad Plug-ins is a set of plug-ins that aren't up to par compared to the rest.
|
||||
They might be close to being good quality, but they're missing something - be it a good code
|
||||
review, some documentation, a set of tests, a real live maintainer, or some actual wide use."
|
||||
HOMEPAGE="http://gstreamer.freedesktop.org/"
|
||||
COPYRIGHT="Erik Walthinsen"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="03cf0786391c64625569072e904082a08861f05a63d64b2f8e8dad3f26d81bf9"
|
||||
SOURCE_DIR="gst-plugins-bad-$portVersion"
|
||||
PATCHES="gstpluginsbad-0.10.23.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
gst_plugins_bad${secondaryArchSuffix} = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
gst_plugins_base${secondaryArchSuffix}
|
||||
lib:libgstreamer$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
lib:libxml2$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libpng$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libcurl$secondaryArchSuffix
|
||||
lib:libfaad$secondaryArchSuffix
|
||||
# lib:libmodplug$secondaryArchSuffix
|
||||
lib:libsndfile$secondaryArchSuffix
|
||||
lib:libsdl$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
gst_plugins_base${secondaryArchSuffix}_devel
|
||||
devel:libgstreamer$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
devel:libcurl$secondaryArchSuffix
|
||||
devel:libfaad$secondaryArchSuffix
|
||||
# devel:libmodplug$secondaryArchSuffix
|
||||
devel:libsndfile$secondaryArchSuffix
|
||||
devel:libsdl$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
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
gst_plugins_bad${secondaryArchSuffix}_devel = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
haiku$secondaryArchSuffix
|
||||
gst_plugins_bad${secondaryArchSuffix}
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export PKG_CONFIG_LIBDIR=/system/develop/lib/x86/pkgconfig/
|
||||
runConfigure ./configure --disable-examples --disable-debug --disable-nls \
|
||||
--with-default-audiosink=sdlaudiosink --with-default-videosink=sdlvideosink
|
||||
find -type f -name '*' -exec sed -i 's/-lpthread/-lroot/g' {} \;
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs libgstsignalprocessor-0.10 libgstphotography-0.10 \
|
||||
libgstcodecparsers-0.10 libgstbasevideo-0.10 libgstbasecamerabinsrc-0.10
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
cd $libDir
|
||||
for i in lib*.so.23.0.*;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
|
||||
}
|
||||
Reference in New Issue
Block a user