gstreamer: add native haiku sound sink

* enable orc compiler
* increase rank for sdl sink
* disable gstcheck module
This commit is contained in:
Gerasim Troeglazov
2017-06-12 09:59:24 +10:00
parent 0241a8f93d
commit cf66cd47a2
6 changed files with 57 additions and 15 deletions

View File

@@ -5,7 +5,7 @@ code review, some documentation, a set of tests, a real live maintainer, or some
HOMEPAGE="http://gstreamer.freedesktop.org/"
COPYRIGHT="Erik Walthinsen"
LICENSE="GNU LGPL v2"
REVISION="3"
REVISION="4"
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"
@@ -98,7 +98,8 @@ BUILD_PREREQUIRES="
BUILD()
{
runConfigure ./configure --disable-examples --disable-debug --disable-nls \
runConfigure ./configure --disable-examples --disable-debug \
--enable-orc --enable-glib-asserts=no --disable-nls \
--with-default-audiosink=sdlaudiosink --with-default-videosink=sdlvideosink
make $jobArgs
}

View File

@@ -1,4 +1,4 @@
From 48f2e7371a26328511a771e49b03403e1d5737ee Mon Sep 17 00:00:00 2001
From 55abc0687e2b9e83daf1d48cf90411343a2f4b32 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
@@ -20,5 +20,31 @@ index af652f2..8c45920 100644
* Resolves host to IP address
* @param element - the element
--
2.2.2
2.7.0
From 8d9f96a49f10769704c4533e392a07fd80ab1160 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sat, 10 Jun 2017 23:38:34 +1000
Subject: Increase sdl audio and video sink priority
diff --git a/ext/sdl/gstsdl.c b/ext/sdl/gstsdl.c
index 9910d10..645600f 100644
--- a/ext/sdl/gstsdl.c
+++ b/ext/sdl/gstsdl.c
@@ -26,9 +26,9 @@ static gboolean
plugin_init (GstPlugin * plugin)
{
- if (!gst_element_register (plugin, "sdlvideosink", GST_RANK_NONE,
+ if (!gst_element_register (plugin, "sdlvideosink", GST_RANK_SECONDARY,
GST_TYPE_SDLVIDEOSINK) ||
- !gst_element_register (plugin, "sdlaudiosink", GST_RANK_NONE,
+ !gst_element_register (plugin, "sdlaudiosink", GST_RANK_SECONDARY,
GST_TYPE_SDLAUDIOSINK)) {
return FALSE;
}
--
2.7.0

View File

@@ -7,7 +7,7 @@ filters are included."
HOMEPAGE="http://gstreamer.freedesktop.org/"
COPYRIGHT="Erik Walthinsen"
LICENSE="GNU LGPL v2"
REVISION="3"
REVISION="4"
SOURCE_URI="http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-$portVersion.tar.xz"
CHECKSUM_SHA256="1fe45c3894903001d4d008b0713dab089f53726dcb5842d5b40c2595a984e64a"
SOURCE_DIR="gst-plugins-base-$portVersion"
@@ -103,7 +103,7 @@ BUILD()
{
runConfigure ./configure --disable-examples --disable-debug --disable-nls \
--with-default-audiosink=sdlaudiosink --with-default-videosink=sdlvideosink \
--with-audioresample-format=int
--with-audioresample-format=int --enable-orc
make $jobArgs
}

View File

@@ -5,12 +5,17 @@ for the supporting library)."
HOMEPAGE="http://gstreamer.freedesktop.org/"
COPYRIGHT="Erik Walthinsen"
LICENSE="GNU LGPL v2"
REVISION="3"
REVISION="4"
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"
gitCommit="3fbaef80ec6946d1635dd88be858b8015d25f4c1"
SOURCE_URI_2="https://github.com/threedeyes/gsthaikuaudiosink/archive/$gitCommit.zip"
CHECKSUM_SHA256_2="a7fc9159033ab430f80374a3ce1a2679f4bbfe7225c421d371f19ed6e06875dd"
SOURCE_DIR_2="gsthaikuaudiosink-$gitCommit"
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
@@ -67,6 +72,7 @@ BUILD_PREREQUIRES="
cmd:autoconf
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:cmake
cmd:grep
cmd:bison
cmd:flex
@@ -77,13 +83,22 @@ BUILD_PREREQUIRES="
BUILD()
{
cd $sourceDir
runConfigure ./configure --disable-examples --disable-debug --disable-nls \
--disable-oss --disable-oss4 \
--with-default-audiosink=sdlaudiosink --with-default-videosink=sdlvideosink
make $jobArgs
cd $sourceDir2
cmake .
make $jobArgs
}
INSTALL()
{
cd $sourceDir
make install
cd $sourceDir2
cp -f libgsthaikuaudiosink.so $libDir/gstreamer-0.10
}

View File

@@ -6,7 +6,7 @@ code might be widely known to present patent problems."
HOMEPAGE="http://gstreamer.freedesktop.org/"
COPYRIGHT="Erik Walthinsen"
LICENSE="GNU LGPL v2"
REVISION="3"
REVISION="4"
SOURCE_URI="http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-$portVersion.tar.xz"
CHECKSUM_SHA256="4934f65ff892637e7efaf1cfe635779189dde429d0706f40c86a3aac476ea873"
SOURCE_DIR="gst-plugins-ugly-$portVersion"
@@ -72,7 +72,8 @@ BUILD_PREREQUIRES="
BUILD()
{
runConfigure ./configure --disable-examples --disable-debug --disable-nls \
runConfigure ./configure --disable-examples --disable-debug \
--enable-orc --enable-glib-asserts=no --disable-nls \
--with-default-audiosink=sdlaudiosink --with-default-videosink=sdlvideosink
make $jobArgs
}

View File

@@ -5,7 +5,7 @@ to complex audio (mixing) and video (non-linear editing) processing."
HOMEPAGE="http://gstreamer.freedesktop.org/"
COPYRIGHT="Erik Walthinsen"
LICENSE="GNU LGPL v2"
REVISION="3"
REVISION="4"
SOURCE_URI="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$portVersion.tar.xz"
CHECKSUM_SHA256="9151aa108c177054387885763fa0e433e76780f7c5655c70a5390f2a6c6871da"
PATCHES="gstreamer-0.10.36.patchset"
@@ -17,7 +17,6 @@ PROVIDES="
gstreamer_0.10$secondaryArchSuffix = $portVersion
lib:libgstreamer_0.10$secondaryArchSuffix = $portVersion
lib:libgstbase_0.10$secondaryArchSuffix = $portVersion
lib:libgstcheck_0.10$secondaryArchSuffix = $portVersion
lib:libgstcontroller_0.10$secondaryArchSuffix = $portVersion
lib:libgstdataprotocol_0.10$secondaryArchSuffix = $portVersion
lib:libgstnet_0.10$secondaryArchSuffix = $portVersion
@@ -48,7 +47,6 @@ PROVIDES_devel="
gstreamer_0.10${secondaryArchSuffix}_devel = $portVersion
devel:libgstreamer_0.10$secondaryArchSuffix = $portVersion
devel:libgstbase_0.10$secondaryArchSuffix = $portVersion
devel:libgstcheck_0.10$secondaryArchSuffix = $portVersion
devel:libgstcontroller_0.10$secondaryArchSuffix = $portVersion
devel:libgstdataprotocol_0.10$secondaryArchSuffix = $portVersion
devel:libgstnet_0.10$secondaryArchSuffix = $portVersion
@@ -83,8 +81,9 @@ BUILD_PREREQUIRES="
BUILD()
{
runConfigure ./configure --disable-tests --disable-examples \
--disable-failing-tests --disable-nls
runConfigure ./configure --disable-examples --disable-gst-debug \
--disable-check --disable-debug --disable-nls --disable-tests \
--disable-alloc-trace --disable-trace --disable-failing-tests
make $jobArgs
}
@@ -92,7 +91,7 @@ INSTALL()
{
make install
prepareInstalledDevelLibs libgstreamer-0.10 libgstcheck-0.10 libgstbase-0.10 \
prepareInstalledDevelLibs libgstreamer-0.10 libgstbase-0.10 \
libgstcontroller-0.10 libgstdataprotocol-0.10 libgstnet-0.10
fixPkgconfig