mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
gstreamer: Add recipe for 1.12.0 version.
This commit is contained in:
95
media-libs/gstreamer/gstreamer-1.12.0.recipe
Normal file
95
media-libs/gstreamer/gstreamer-1.12.0.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="14d5eef8297d2bf2a728d38fa43cd92cc267a0ad260cf83d770215212aff4302"
|
||||
PATCHES="gstreamer-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
gstreamer_1.0$secondaryArchSuffix = $portVersion
|
||||
lib:libgstreamer_1.0$secondaryArchSuffix = $portVersion
|
||||
lib:libgstbase_1.0$secondaryArchSuffix = $portVersion
|
||||
lib:libgstcontroller_1.0$secondaryArchSuffix = $portVersion
|
||||
lib:libgstnet_1.0$secondaryArchSuffix = $portVersion
|
||||
cmd:gst_inspect_1.0$secondaryArchSuffix = $portVersion
|
||||
cmd:gst_launch_1.0$secondaryArchSuffix = $portVersion
|
||||
cmd:gst_stats_1.0$secondaryArchSuffix = $portVersion
|
||||
cmd:gst_typefind_1.0$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libxml2$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
gstreamer_1.0${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libgstreamer_1.0$secondaryArchSuffix = $portVersion
|
||||
devel:libgstbase_1.0$secondaryArchSuffix = $portVersion
|
||||
devel:libgstcontroller_1.0$secondaryArchSuffix = $portVersion
|
||||
devel:libgstnet_1.0$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
gstreamer_1.0$secondaryArchSuffix == $portVersion base
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libintl$secondaryArchSuffix
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:libtool
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:make
|
||||
cmd:grep
|
||||
cmd:bison
|
||||
cmd:flex
|
||||
cmd:python
|
||||
cmd:which
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure --disable-gst-debug --disable-debug \
|
||||
--disable-tests --disable-failing-tests --disable-check \
|
||||
--disable-examples --disable-nls
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs libgstreamer-1.0 libgstbase-1.0 \
|
||||
libgstcontroller-1.0 libgstnet-1.0
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
mv -f $includeDir/gstreamer-1.0/gst $includeDir/
|
||||
rm -rf $includeDir/gstreamer-1.0
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
22
media-libs/gstreamer/patches/gstreamer-1.12.0.patchset
Normal file
22
media-libs/gstreamer/patches/gstreamer-1.12.0.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From 749a0d494d6b86fbf206d2625f4d2d358c94e628 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Fri, 26 May 2017 23:18:59 +1000
|
||||
Subject: Fix buffer for filesrc coreelement
|
||||
|
||||
|
||||
diff --git a/plugins/elements/gstfilesink.c b/plugins/elements/gstfilesink.c
|
||||
index 4ce527e..87a010b 100644
|
||||
--- a/plugins/elements/gstfilesink.c
|
||||
+++ b/plugins/elements/gstfilesink.c
|
||||
@@ -402,7 +402,7 @@ gst_file_sink_open_file (GstFileSink * sink)
|
||||
buffer_size = sink->buffer_size;
|
||||
}
|
||||
/* Cygwin does not have __fbufsize */
|
||||
-#if defined(HAVE_STDIO_EXT_H) && !defined(__CYGWIN__)
|
||||
+#if defined(HAVE_STDIO_EXT_H) && !defined(__CYGWIN__) && !defined(__HAIKU__)
|
||||
GST_DEBUG_OBJECT (sink, "change buffer size %u to %u, mode %d",
|
||||
(guint) __fbufsize (sink->file), buffer_size, mode);
|
||||
#else
|
||||
--
|
||||
2.7.0
|
||||
|
||||
Reference in New Issue
Block a user