diff mbox

[1/2] gstreamer1: Add gstreamer version 1.0.7 package

Message ID 1368057893-20874-1-git-send-email-spenser@gillilanding.com
State Superseded
Headers show

Commit Message

Spenser Gilliland May 9, 2013, 12:04 a.m. UTC
This patch adds the gstreamer version 1.x series to buildroot.

Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
---
 package/multimedia/Config.in                |    1 +
 package/multimedia/gstreamer1/Config.in     |   37 +++++++++++++++++++++++++++
 package/multimedia/gstreamer1/gstreamer1.mk |   33 ++++++++++++++++++++++++
 3 files changed, 71 insertions(+)
 create mode 100644 package/multimedia/gstreamer1/Config.in
 create mode 100644 package/multimedia/gstreamer1/gstreamer1.mk

Comments

Thomas Petazzoni May 9, 2013, 9:08 a.m. UTC | #1
Dear Spenser Gilliland,

On Wed,  8 May 2013 19:04:52 -0500, Spenser Gilliland wrote:

> diff --git a/package/multimedia/gstreamer1/Config.in b/package/multimedia/gstreamer1/Config.in
> new file mode 100644
> index 0000000..b1fd8b1
> --- /dev/null
> +++ b/package/multimedia/gstreamer1/Config.in
> @@ -0,0 +1,37 @@
> +config BR2_PACKAGE_GSTREAMER1
> +	bool "gstreamer1"
> +	depends on BR2_USE_WCHAR # glib2
> +	depends on BR2_TOOLCHAIN_HAS_THREADS
> +	select BR2_PACKAGE_LIBGLIB2
> +	help
> +	  GStreamer is an open source multimedia framework.
> +
> +	  http://gstreamer.freedesktop.org/

Is it possible to build/install gstreamer and gstreamer1 side by side?
I.e, I'm wondering if we should make those two mutually exclusive
choices, or if we can let the user select both if needed.

Thomas
Spenser Gilliland May 9, 2013, 1:52 p.m. UTC | #2
Dear Thomas,

>> diff --git a/package/multimedia/gstreamer1/Config.in b/package/multimedia/gstreamer1/Config.in
>> new file mode 100644
>> index 0000000..b1fd8b1
>> --- /dev/null
>> +++ b/package/multimedia/gstreamer1/Config.in
>> @@ -0,0 +1,37 @@
>> +config BR2_PACKAGE_GSTREAMER1
>> +     bool "gstreamer1"
>> +     depends on BR2_USE_WCHAR # glib2
>> +     depends on BR2_TOOLCHAIN_HAS_THREADS
>> +     select BR2_PACKAGE_LIBGLIB2
>> +     help
>> +       GStreamer is an open source multimedia framework.
>> +
>> +       http://gstreamer.freedesktop.org/
>
> Is it possible to build/install gstreamer and gstreamer1 side by side?
> I.e, I'm wondering if we should make those two mutually exclusive
> choices, or if we can let the user select both if needed.

From the limited testing I have done, the answer is yes and it may not
require any patches.  Looks like everything neatly installs into a
/usr/lib/gstreamer-1.0 folder or a /usr/lib/<name>-1.0.so; the pc
files end up with <name>-1.0 postfixes;  all include files are in
/usr/lib/gstreamer-1.0; and the executables all have a -1.0 postfix.

> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com



--
Spenser Gilliland
Computer Engineer
Doctoral Candidate
Thomas Petazzoni May 9, 2013, 3:54 p.m. UTC | #3
Dear Spenser Gilliland,

On Thu, 9 May 2013 08:52:12 -0500, Spenser Gilliland wrote:

> > Is it possible to build/install gstreamer and gstreamer1 side by side?
> > I.e, I'm wondering if we should make those two mutually exclusive
> > choices, or if we can let the user select both if needed.
> 
> From the limited testing I have done, the answer is yes and it may not
> require any patches.  Looks like everything neatly installs into a
> /usr/lib/gstreamer-1.0 folder or a /usr/lib/<name>-1.0.so; the pc
> files end up with <name>-1.0 postfixes;  all include files are in
> /usr/lib/gstreamer-1.0; and the executables all have a -1.0 postfix.

Sounds good then, thanks!

Thomas
diff mbox

Patch

diff --git a/package/multimedia/Config.in b/package/multimedia/Config.in
index 931e6d3..f6a5fd7 100644
--- a/package/multimedia/Config.in
+++ b/package/multimedia/Config.in
@@ -6,6 +6,7 @@  source "package/multimedia/faad2/Config.in"
 source "package/multimedia/flac/Config.in"
 source "package/multimedia/ffmpeg/Config.in"
 source "package/multimedia/gstreamer/Config.in"
+source "package/multimedia/gstreamer1/Config.in"
 source "package/multimedia/gst-ffmpeg/Config.in"
 source "package/multimedia/gst-dsp/Config.in"
 source "package/multimedia/gst-fsl-plugins/Config.in"
diff --git a/package/multimedia/gstreamer1/Config.in b/package/multimedia/gstreamer1/Config.in
new file mode 100644
index 0000000..b1fd8b1
--- /dev/null
+++ b/package/multimedia/gstreamer1/Config.in
@@ -0,0 +1,37 @@ 
+config BR2_PACKAGE_GSTREAMER1
+	bool "gstreamer1"
+	depends on BR2_USE_WCHAR # glib2
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_LIBGLIB2
+	help
+	  GStreamer is an open source multimedia framework.
+
+	  http://gstreamer.freedesktop.org/
+
+config BR2_PACKAGE_GSTREAMER1_GST_DEBUG
+	bool "enable gst-debug trace support"
+	default y
+	depends on BR2_PACKAGE_GSTREAMER1
+	help
+	  Enable support for the gst-debug tracing functionality in gstreamer.
+	  This has limited CPU overhead, but does increase the rootfs size
+	  somewhat.
+
+config BR2_PACKAGE_GSTREAMER1_PLUGIN_REGISTRY
+	bool "enable plugin registry"
+	default y
+	depends on BR2_PACKAGE_GSTREAMER1
+	help
+	  Enable support for the GStreamer plugin registry. This may increase
+	  the launch-time for a GStreamer application.
+
+config BR2_PACKAGE_GSTREAMER1_INSTALL_TOOLS
+	bool "install gst-launch gst-inspect"
+	default y
+	depends on BR2_PACKAGE_GSTREAMER1
+	help
+	  Install the gst-launch and gst-inspect tools. This will take up
+	  additional space on the target
+
+comment "gstreamer requires a toolchain with WCHAR and threads support"
+	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/multimedia/gstreamer1/gstreamer1.mk b/package/multimedia/gstreamer1/gstreamer1.mk
new file mode 100644
index 0000000..3bcecc8
--- /dev/null
+++ b/package/multimedia/gstreamer1/gstreamer1.mk
@@ -0,0 +1,33 @@ 
+#############################################################
+#
+# gstreamer1
+#
+#############################################################
+
+GSTREAMER1_VERSION = 1.0.7
+GSTREAMER1_SOURCE = gstreamer-$(GSTREAMER1_VERSION).tar.xz
+GSTREAMER1_SITE = http://gstreamer.freedesktop.org/src/gstreamer
+GSTREAMER1_INSTALL_STAGING = YES
+
+# Checking if unaligned memory access works correctly cannot be done when cross
+# compiling. For the following architectures there is no information available
+# in the configure script.
+ifeq ($(BR2_avr32),y)
+GSTREAMER1_CONF_ENV = as_cv_unaligned_access=no
+endif
+ifeq ($(BR2_aarch64),y)
+GSTREAMER1_CONF_ENV = as_cv_unaligned_access=yes
+endif
+
+GSTREAMER1_CONF_OPT = \
+		--disable-examples \
+		--disable-tests \
+		--disable-failing-tests \
+		$(if $(BR2_PACKAGE_GSTREAMER1_GST_DEBUG),,--disable-gst-debug) \
+		$(if $(BR2_PACKAGE_GSTREAMER1_PLUGIN_REGISTRY),,--disable-registry) \
+		$(if $(BR2_PACKAGE_GSTREAMER1_INSTALL_TOOLS),,--disable-tools) \
+		$(if $(BR2_LARGEFILE),,--disable-largefile)
+
+GSTREAMER1_DEPENDENCIES = libglib2 host-pkgconf host-bison host-flex
+
+$(eval $(autotools-package))