mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
gstreamer: add recipe for version 0.10.36
This commit is contained in:
95
media-libs/gstreamer/gstreamer-0.10.36.recipe
Normal file
95
media-libs/gstreamer/gstreamer-0.10.36.recipe
Normal file
@@ -0,0 +1,95 @@
|
||||
SUMMARY="Open source multimedia framework"
|
||||
DESCRIPTION="GStreamer is a library for constructing graphs of media-handling components.
|
||||
The applications it supports range from simple Ogg/Vorbis playback, audio/video streaming
|
||||
to complex audio (mixing) and video (non-linear editing) processing."
|
||||
HOMEPAGE="http://gstreamer.freedesktop.org/"
|
||||
COPYRIGHT="Erik Walthinsen"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="9151aa108c177054387885763fa0e433e76780f7c5655c70a5390f2a6c6871da"
|
||||
PATCHES="gstreamer-0.10.36.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
gstreamer$secondaryArchSuffix = $portVersion
|
||||
lib:libgstreamer$secondaryArchSuffix = $portVersion
|
||||
lib:libgstbase$secondaryArchSuffix = $portVersion
|
||||
lib:libgstcheck$secondaryArchSuffix = $portVersion
|
||||
lib:libgstcontroller$secondaryArchSuffix = $portVersion
|
||||
lib:libgstdataprotocol$secondaryArchSuffix = $portVersion
|
||||
lib:libgstnet$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
lib:libxml2$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
gstreamer${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libgstreamer$secondaryArchSuffix = $portVersion
|
||||
devel:libgstbase$secondaryArchSuffix = $portVersion
|
||||
devel:libgstcheck$secondaryArchSuffix = $portVersion
|
||||
devel:libgstcontroller$secondaryArchSuffix = $portVersion
|
||||
devel:libgstdataprotocol$secondaryArchSuffix = $portVersion
|
||||
devel:libgstnet$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
gstreamer$secondaryArchSuffix == $portVersion base
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
devel:libxml2$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-tests --disable-examples \
|
||||
--disable-failing-tests --disable-nls
|
||||
find -type f -name '*' -exec sed -i 's/-lpthread/-lroot/g' {} \;
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs libgstreamer-0.10 libgstcheck-0.10 libgstbase-0.10 \
|
||||
libgstcontroller-0.10 libgstdataprotocol-0.10 libgstnet-0.10
|
||||
fixPkgconfig
|
||||
|
||||
cd $libDir
|
||||
for i in lib*.so.0.30.*;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
|
||||
}
|
||||
22
media-libs/gstreamer/patches/gstreamer-0.10.36.patchset
Normal file
22
media-libs/gstreamer/patches/gstreamer-0.10.36.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From e86926d83ecbed962c5b94b21ffd9eca9f15e7c9 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Mon, 2 Nov 2015 22:39:22 +0000
|
||||
Subject: Fix buffer for filesrc coreelement
|
||||
|
||||
|
||||
diff --git a/plugins/elements/gstfilesink.c b/plugins/elements/gstfilesink.c
|
||||
index 9356c0f..ffd4479 100644
|
||||
--- a/plugins/elements/gstfilesink.c
|
||||
+++ b/plugins/elements/gstfilesink.c
|
||||
@@ -398,7 +398,7 @@ gst_file_sink_open_file (GstFileSink * sink)
|
||||
sink->buffer = g_malloc (sink->buffer_size);
|
||||
buffer_size = sink->buffer_size;
|
||||
}
|
||||
-#ifdef HAVE_STDIO_EXT_H
|
||||
+#if defined(HAVE_STDIO_EXT_H) && !defined(__HAIKU__)
|
||||
GST_DEBUG_OBJECT (sink, "change buffer size %u to %u, mode %d",
|
||||
(guint) __fbufsize (sink->file), buffer_size, mode);
|
||||
#else
|
||||
--
|
||||
2.2.2
|
||||
|
||||
Reference in New Issue
Block a user