From 6f0373c52420af07c81056fd1d418fdc26b12561 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Sun, 22 Nov 2015 12:07:27 +0000 Subject: [PATCH] gst_plugins_bad: add recipe for version 0.10.23 --- .../gst_plugins_bad-0.10.23.recipe | 110 ++++++++++++++++++ .../patches/gstpluginsbad-0.10.23.patchset | 24 ++++ 2 files changed, 134 insertions(+) create mode 100644 media-libs/gst_plugins_bad/gst_plugins_bad-0.10.23.recipe create mode 100644 media-libs/gst_plugins_bad/patches/gstpluginsbad-0.10.23.patchset diff --git a/media-libs/gst_plugins_bad/gst_plugins_bad-0.10.23.recipe b/media-libs/gst_plugins_bad/gst_plugins_bad-0.10.23.recipe new file mode 100644 index 000000000..b3e784fbb --- /dev/null +++ b/media-libs/gst_plugins_bad/gst_plugins_bad-0.10.23.recipe @@ -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 +} diff --git a/media-libs/gst_plugins_bad/patches/gstpluginsbad-0.10.23.patchset b/media-libs/gst_plugins_bad/patches/gstpluginsbad-0.10.23.patchset new file mode 100644 index 000000000..9acc6ba0b --- /dev/null +++ b/media-libs/gst_plugins_bad/patches/gstpluginsbad-0.10.23.patchset @@ -0,0 +1,24 @@ +From 48f2e7371a26328511a771e49b03403e1d5737ee Mon Sep 17 00:00:00 2001 +From: Gerasim Troeglazov <3dEyes@gmail.com> +Date: Tue, 3 Nov 2015 00:17:55 +0000 +Subject: Fix build + + +diff --git a/gst/dccp/gstdccp.c b/gst/dccp/gstdccp.c +index af652f2..8c45920 100644 +--- a/gst/dccp/gstdccp.c ++++ b/gst/dccp/gstdccp.c +@@ -27,6 +27,10 @@ + #include + #endif + ++#ifdef __HAIKU__ ++#include ++#endif ++ + /* + * Resolves host to IP address + * @param element - the element +-- +2.2.2 +