Files
haikuports/media-libs/gst_plugins_bad/gst_plugins_bad-1.12.2.recipe
2017-07-18 21:58:52 +10:00

142 lines
4.8 KiB
Bash

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="https://gstreamer.freedesktop.org/"
COPYRIGHT="Erik Walthinsen"
LICENSE="GNU LGPL v2"
REVISION="3"
SOURCE_URI="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-$portVersion.tar.xz"
CHECKSUM_SHA256="9c2c7edde4f59d74eb414e0701c55131f562e5c605a3ce9b091754f106c09e37"
SOURCE_DIR="gst-plugins-bad-$portVersion"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
gst_plugins_bad$secondaryArchSuffix = $portVersion
lib:libgstadaptivedemux_1.0$secondaryArchSuffix = $portVersion
lib:libgstbadallocators_1.0$secondaryArchSuffix = $portVersion
lib:libgstbadaudio_1.0$secondaryArchSuffix = $portVersion
lib:libgstbadbase_1.0$secondaryArchSuffix = $portVersion
lib:libgstbadvideo_1.0$secondaryArchSuffix = $portVersion
lib:libgstbasecamerabinsrc_1.0$secondaryArchSuffix = $portVersion
lib:libgstcodecparsers_1.0$secondaryArchSuffix = $portVersion
lib:libgstinsertbin_1.0$secondaryArchSuffix = $portVersion
lib:libgstmpegts_1.0$secondaryArchSuffix = $portVersion
lib:libgstphotography_1.0$secondaryArchSuffix = $portVersion
lib:libgstplayer_1.0$secondaryArchSuffix = $portVersion
lib:libgsturidownloader_1.0$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libbz2$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
lib:libfaad$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libgstapp_1.0$secondaryArchSuffix
lib:libgstaudio_1.0$secondaryArchSuffix
lib:libgstreamer_1.0$secondaryArchSuffix
lib:libgstvideo_1.0$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:liborc_0.4$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libsndfile$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
SUPPLEMENTS="
gstreamer$secondaryArchSuffix
"
PROVIDES_devel="
gst_plugins_bad${secondaryArchSuffix}_devel = $portVersion
devel:libgstadaptivedemux_1.0$secondaryArchSuffix = $portVersion
devel:libgstbadallocators_1.0$secondaryArchSuffix = $portVersion
devel:libgstbadaudio_1.0$secondaryArchSuffix = $portVersion
devel:libgstbadbase_1.0$secondaryArchSuffix = $portVersion
devel:libgstbadvideo_1.0$secondaryArchSuffix = $portVersion
devel:libgstbasecamerabinsrc_1.0$secondaryArchSuffix = $portVersion
devel:libgstcodecparsers_1.0$secondaryArchSuffix = $portVersion
devel:libgstinsertbin_1.0$secondaryArchSuffix = $portVersion
devel:libgstmpegts_1.0$secondaryArchSuffix = $portVersion
devel:libgstphotography_1.0$secondaryArchSuffix = $portVersion
devel:libgstplayer_1.0$secondaryArchSuffix = $portVersion
devel:libgsturidownloader_1.0$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
haiku$secondaryArchSuffix
gst_plugins_bad${secondaryArchSuffix}
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libbz2$secondaryArchSuffix
devel:libcrypto$secondaryArchSuffix
devel:libcurl$secondaryArchSuffix
devel:libfaad$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libgstapp_1.0$secondaryArchSuffix
devel:libgstaudio_1.0$secondaryArchSuffix
devel:libgstreamer_1.0$secondaryArchSuffix
devel:libgstvideo_1.0$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:liborc_0.4$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libsndfile$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:bison
cmd:flex
cmd:gcc$secondaryArchSuffix
cmd:grep
cmd:ld$secondaryArchSuffix
cmd:libtool
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:orcc$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
cmd:python
cmd:which
"
BUILD()
{
cd $sourceDir
runConfigure ./configure --disable-debug --disable-examples --disable-nls --enable-orc
make $jobArgs
}
INSTALL()
{
make install
rm -f $libDir/*.la
rm -f $libDir/gstreamer-1.0/*.la
prepareInstalledDevelLibs libgstadaptivedemux-1.0 libgstbadallocators-1.0 \
libgstbadaudio-1.0 libgstbadbase-1.0 libgstbadvideo-1.0 \
libgstbasecamerabinsrc-1.0 libgstcodecparsers-1.0 libgstinsertbin-1.0 \
libgstmpegts-1.0 libgstphotography-1.0 libgstplayer-1.0 libgsturidownloader-1.0
fixPkgconfig
mv -f $includeDir/gstreamer-1.0/gst $includeDir/
rm -rf $includeDir/gstreamer-1.0
# devel package
packageEntries devel \
$developDir
}