From 4bfe5b48e4bab156cae1eb6bb89f80785dd0e63c Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Sun, 22 Nov 2015 12:06:37 +0000 Subject: [PATCH] gst_plugins_good: add recipe for version 0.10.31 --- .../gst_plugins_good-0.10.31.recipe | 84 +++++++++++++++++++ .../patches/gstpluginsgood-0.10.31.patchset | 22 +++++ 2 files changed, 106 insertions(+) create mode 100644 media-libs/gst_plugins_good/gst_plugins_good-0.10.31.recipe create mode 100644 media-libs/gst_plugins_good/patches/gstpluginsgood-0.10.31.patchset diff --git a/media-libs/gst_plugins_good/gst_plugins_good-0.10.31.recipe b/media-libs/gst_plugins_good/gst_plugins_good-0.10.31.recipe new file mode 100644 index 000000000..e3438d92b --- /dev/null +++ b/media-libs/gst_plugins_good/gst_plugins_good-0.10.31.recipe @@ -0,0 +1,84 @@ +SUMMARY="GStreamer Good Plug-ins" +DESCRIPTION="GStreamer Good Plug-ins is a set of plug-ins that we consider to have good quality code, + correct functionality, our preferred license (LGPL for the plug-in code, LGPL or LGPL-compatible + for the supporting library)." +HOMEPAGE="http://gstreamer.freedesktop.org/" +COPYRIGHT="Erik Walthinsen" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-$portVersion.tar.xz" +CHECKSUM_SHA256="77a8436a7c0a15f876bad29616835046890df2bcaf72da02151bd91e3d292b64" +SOURCE_DIR="gst-plugins-good-$portVersion" +PATCHES="gstpluginsgood-0.10.31.patchset" + +ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + gst_plugins_good${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:libtag$secondaryArchSuffix + lib:libspeex$secondaryArchSuffix + lib:libflac$secondaryArchSuffix + lib:libsoup$secondaryArchSuffix + lib:libsqlite3$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + gst_plugins_base${secondaryArchSuffix}_devel + devel:libtag$secondaryArchSuffix + devel:libgstreamer$secondaryArchSuffix + devel:libfreetype$secondaryArchSuffix + devel:libpng$secondaryArchSuffix + devel:libjpeg$secondaryArchSuffix + devel:libglib_2.0$secondaryArchSuffix + devel:libz$secondaryArchSuffix + devel:libxml2$secondaryArchSuffix + devel:libspeex$secondaryArchSuffix + devel:libflac$secondaryArchSuffix + devel:libsoup$secondaryArchSuffix + devel:libsqlite3$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-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 +} diff --git a/media-libs/gst_plugins_good/patches/gstpluginsgood-0.10.31.patchset b/media-libs/gst_plugins_good/patches/gstpluginsgood-0.10.31.patchset new file mode 100644 index 000000000..2002479bb --- /dev/null +++ b/media-libs/gst_plugins_good/patches/gstpluginsgood-0.10.31.patchset @@ -0,0 +1,22 @@ +From 525b5b0df4d57d206394b63b56eb65d0b8a7b62b Mon Sep 17 00:00:00 2001 +From: Gerasim Troeglazov <3dEyes@gmail.com> +Date: Mon, 2 Nov 2015 23:57:18 +0000 +Subject: Fix build + + +diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c +index 3377df2..d241121 100644 +--- a/gst/udp/gstudpsrc.c ++++ b/gst/udp/gstudpsrc.c +@@ -419,7 +419,7 @@ gst_udpsrc_create (GstPushSrc * psrc, GstBuffer ** buf) + socklen_t slen; + guint8 *pktdata; + gint pktsize; +-#ifdef G_OS_UNIX ++#if defined(G_OS_UNIX) || defined(__HAIKU__) + gint readsize; + #elif defined G_OS_WIN32 + gulong readsize; +-- +2.2.2 +