gst_plugins_good: add recipe for version 0.10.31

This commit is contained in:
Gerasim Troeglazov
2015-11-22 12:06:37 +00:00
parent 842c6510e6
commit 4bfe5b48e4
2 changed files with 106 additions and 0 deletions

View File

@@ -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
}

View File

@@ -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