clutter-gst: update to latest upstream version 3.0.4

This also makes it GStreamer 1.0 compatible

https://bugzilla.yoctoproject.org/show_bug.cgi?id=6294

(From OE-Core rev: 4a2f9e7eebcfe106738af17917a700d769acf03b)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin 2015-05-18 16:58:36 +03:00 committed by Richard Purdie
parent d30b1b0d0e
commit 50ce68aa27
8 changed files with 59 additions and 76 deletions

View File

@ -1,48 +0,0 @@
From 1ae4c3e7b1e2c33892590f9ac7bf0e892a5bcbd5 Mon Sep 17 00:00:00 2001
From: Tomas Frydrych <tomas@sleepfive.com>
Date: Thu, 11 Oct 2012 08:53:03 +0100
Subject: [PATCH] ClutterGstVideoSink: fix includes so we can build against
cogl-1.14
Cogl 1.14 exposes various GL types through the public API but it does not
pull in the GL type definitions through its public headers; specifically
compilation will fail due to undefined GL_TEXTURE_2D. So include the headers
the hard way.
Upstream-Status: Submitted @ https://bugzilla.gnome.org/show_bug.cgi?id=700509
Signed-off-by: Tomas Frydrych <tomas@sleepfive.com>
---
clutter-gst/clutter-gst-video-sink.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
index 9b4b53c..f092581 100644
--- a/clutter-gst/clutter-gst-video-sink.c
+++ b/clutter-gst/clutter-gst-video-sink.c
@@ -42,6 +42,23 @@
#include "config.h"
#endif
+/*
+ * cogl-1.14 exposes generic GL types in the API, but not the actual includes.
+ */
+#include <cogl/cogl.h>
+
+#ifdef COGL_HAS_GLES1
+#include <GLES/gl.h>
+#include <GLES/glext.h>
+#elif COGL_HAS_GLES2
+#include <GLES2/gl2.h>
+#include <GLES2/gl2ext.h>
+#elif COGL_HAS_GL
+#include <GL/gl.h>
+#else
+#error Unknown cogl configuration
+#endif
+
#include "clutter-gst-video-sink.h"
#include "clutter-gst-util.h"
#include "clutter-gst-private.h"
--
1.7.10.4

View File

@ -1,18 +0,0 @@
SUMMARY = "GStreamer integration library for Clutter"
HOMEPAGE = "http://www.clutter-project.org/"
LICENSE = "LGPLv2+"
inherit clutter
SRC_URI += "file://enable-tests.patch"
DEPENDS = "gst-plugins-base gst-plugins-bad clutter-1.0"
RDEPENDS_${PN} += "gst-meta-base"
PACKAGES =+ "${PN}-examples"
EXTRA_OECONF += "--disable-introspection"
FILES_${PN} += "${libdir}/gstreamer-0.10/lib*.so"
FILES_${PN}-dev += "${libdir}/gstreamer-0.10/*.la"
FILES_${PN}-dbg += "${libdir}/gstreamer-0.10/.debug/lib*.so"
FILES_${PN}-examples = "${bindir}/video-player ${bindir}/video-sink"

View File

@ -1,9 +0,0 @@
require clutter-gst-1.0.inc
SRC_URI += "file://cogl-1.14.patch"
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
file://clutter-gst/clutter-gst.h;beginline=1;endline=24;md5=95baacba194e814c110ea3bdf25ddbf4"
SRC_URI[archive.md5sum] = "d60ab0118730cecd5dd9988ad7da034b"
SRC_URI[archive.sha256sum] = "abc879cdd562f1640a825131405f4327a427bfe65b805ebc25d0c78909c8c622"

View File

@ -0,0 +1,33 @@
From d77c711277bf075ce0545c19b322f040c49c778a Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex.kanavin@gmail.com>
Date: Thu, 30 Apr 2015 12:19:13 +0300
Subject: [PATCH] Install example binary needed for core-image-clutter
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Upstream-Status: Inappropriate [configuration]
Imported from clutter-gst-1.8 package, git://git.openembedded.org/openembedded,
commit ae28ee3f7a060b9e0d13154a84f2444a98490b5b, updated for clutter-gst 3.0
Signed-off-by: Tomas Frydrych <tomas@sleepfive.com>
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
examples/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/Makefile.am b/examples/Makefile.am
index bfbc1b5..09655e3 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -1,6 +1,6 @@
NULL = #
-noinst_PROGRAMS = camera-player video-player video-sink video-sink-navigation video-content
+bin_PROGRAMS = camera-player video-player video-sink video-sink-navigation video-content
AM_CPPFLAGS = -I$(top_srcdir) \
$(MAINTAINER_CFLAGS) \
--
2.1.4

View File

@ -0,0 +1,18 @@
SUMMARY = "GStreamer integration library for Clutter"
HOMEPAGE = "http://www.clutter-project.org/"
LICENSE = "LGPLv2+"
inherit clutter
SRC_URI += "file://0001-Install-example-binary-needed-for-core-image-clutter.patch"
DEPENDS = "gstreamer1.0-plugins-base gstreamer1.0-plugins-bad clutter-1.0"
RDEPENDS_${PN} += "gstreamer1.0-meta-base"
PACKAGES =+ "${PN}-examples"
EXTRA_OECONF += "--disable-introspection"
FILES_${PN} += "${libdir}/gstreamer-1.0/lib*.so"
FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la"
FILES_${PN}-dbg += "${libdir}/gstreamer-1.0/.debug/lib*.so"
FILES_${PN}-examples = "${bindir}/video-player ${bindir}/video-sink"

View File

@ -0,0 +1,7 @@
require clutter-gst-3.0.inc
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
file://clutter-gst/clutter-gst.h;beginline=1;endline=24;md5=95baacba194e814c110ea3bdf25ddbf4"
SRC_URI[archive.md5sum] = "0b4283e6ccf5ee5d9f5fb635230fc714"
SRC_URI[archive.sha256sum] = "c61011732428c74923a52cc7629903bd910ecad22634d58f7b0c1dc55235162a"

View File

@ -16,6 +16,6 @@ PACKAGES = "\
SUMMARY_${PN}-core = "Clutter graphics library"
RDEPENDS_${PN}-core = "\
clutter-1.0 \
clutter-gst-1.0 \
clutter-gst-3.0 \
clutter-gtk-1.0 \
"