Files
haikuports/media-libs/gst_plugins_bad/gst_plugins_bad-1.12.3.recipe
2017-10-09 22:38:46 +02:00

142 lines
5.0 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="1"
SOURCE_URI="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-$portVersion.tar.xz"
CHECKSUM_SHA256="36d059761852bed0f1a7fcd3ef64a8aeecab95d2bca53cd6aa0f08054b1cbfec"
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 = 0.1203.0 compat >= 0
lib:libgstbadallocators_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
lib:libgstbadaudio_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
lib:libgstbadbase_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
lib:libgstbadvideo_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
lib:libgstbasecamerabinsrc_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
lib:libgstcodecparsers_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
lib:libgstinsertbin_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
lib:libgstmpegts_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
lib:libgstphotography_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
lib:libgstplayer_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
lib:libgsturidownloader_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
"
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 = 0.1203.0 compat >= 0
devel:libgstbadallocators_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
devel:libgstbadaudio_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
devel:libgstbadbase_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
devel:libgstbadvideo_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
devel:libgstbasecamerabinsrc_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
devel:libgstcodecparsers_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
devel:libgstinsertbin_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
devel:libgstmpegts_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
devel:libgstphotography_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
devel:libgstplayer_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
devel:libgsturidownloader_1.0$secondaryArchSuffix = 0.1203.0 compat >= 0
"
REQUIRES_devel="
gst_plugins_bad${secondaryArchSuffix} == $portVersion base
haiku$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:libtoolize$secondaryArchSuffix
cmd:make
cmd:orcc$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
cmd:python
cmd:which
"
BUILD()
{
runConfigure ./configure --disable-debug --disable-examples \
--disable-nls --enable-orc
make $jobArgs
}
INSTALL()
{
make install
rm -f $libDir/libgst*.la $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
}