summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/clutter
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
committerTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
commit972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch)
tree97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-graphics/clutter
downloadpoky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-graphics/clutter')
-rw-r--r--meta/recipes-graphics/clutter/clutter-1.0.inc45
-rw-r--r--meta/recipes-graphics/clutter/clutter-1.0/install-examples.patch18
-rw-r--r--meta/recipes-graphics/clutter/clutter-1.0_1.18.2.bb8
-rw-r--r--meta/recipes-graphics/clutter/clutter-gst-1.0-1.6.0/cogl-1.14.patch48
-rw-r--r--meta/recipes-graphics/clutter/clutter-gst-1.0-1.6.0/enable-tests.patch23
-rw-r--r--meta/recipes-graphics/clutter/clutter-gst-1.0.inc18
-rw-r--r--meta/recipes-graphics/clutter/clutter-gst-1.0_1.6.0.bb9
-rw-r--r--meta/recipes-graphics/clutter/clutter-gtk-1.0.inc12
-rw-r--r--meta/recipes-graphics/clutter/clutter-gtk-1.0_1.4.4.bb6
9 files changed, 187 insertions, 0 deletions
diff --git a/meta/recipes-graphics/clutter/clutter-1.0.inc b/meta/recipes-graphics/clutter/clutter-1.0.inc
new file mode 100644
index 0000000000..77035d746f
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-1.0.inc
@@ -0,0 +1,45 @@
1SUMMARY = "Graphics library for creating hardware-accelerated user interfaces"
2HOMEPAGE = "http://www.clutter-project.org/"
3LICENSE = "LGPLv2.1+"
4
5inherit clutter
6
7DEPENDS = "pango glib-2.0 json-glib atk udev cogl-1.0"
8PACKAGE_BEFORE_PN += "${PN}-examples"
9AUTOTOOLS_AUXDIR = "${S}/build"
10
11EDEPENDS_X11 = "virtual/libx11 libxi libxfixes"
12EDEPENDS_GLX = "virtual/libgl"
13EDEPENDS_EGL = "virtual/egl"
14EDEPENDS_WAYLAND = "wayland libxkbcommon gdk-pixbuf"
15
16EDEPENDS_EVDEV = "libxkbcommon"
17ERDEPENDS_EVDEV = "xkeyboard-config"
18
19# Disable pretty much everything, override in platform specific set up
20EXTRA_OECONF += "--disable-introspection \
21 --disable-quartz-backend \
22 --disable-win32-backend \
23 --disable-gdk-backend \
24 --disable-cex100-backend \
25 --disable-tslib-input \
26 "
27
28PACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,${EDEPENDS_X11}"
29PACKAGECONFIG[glx] = ",,${EDEPENDS_X11} ${EDEPENDS_GLX}"
30PACKAGECONFIG[egl] = "--enable-egl-backend,--disable-egl-backend,${EDEPENDS_EGL}"
31PACKAGECONFIG[evdev] = "--enable-evdev-input,--disable-evdev-input,${EDEPENDS_EVDEV},${ERDEPENDS_EVDEV}"
32PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,${EDEPENDS_WAYLAND}"
33PACKAGECONFIG[wayland-compositor] = "--enable-wayland-compositor,--disable-wayland-compositor,wayland"
34
35# Default configuration, distros might want to override
36PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
37 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx x11', '', d)}"
38
39FILES_${PN}-dbg += "${libdir}/clutter/examples/.debug"
40FILES_${PN}-examples = "${libdir}/clutter/examples"
41
42do_configure_prepend() {
43 # see https://bugzilla.gnome.org/show_bug.cgi?id=661128 for this
44 touch -t 200001010000 ${S}/po/clutter-1.0.pot
45}
diff --git a/meta/recipes-graphics/clutter/clutter-1.0/install-examples.patch b/meta/recipes-graphics/clutter/clutter-1.0/install-examples.patch
new file mode 100644
index 0000000000..3b6a70ef0a
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-1.0/install-examples.patch
@@ -0,0 +1,18 @@
1Install the examples to $libdir/clutter/.
2
3Signed-off-by: Ross Burton <ross.burton@intel.com>
4Upstream-Status: Inappropriate
5
6diff --git a/examples/Makefile.am b/examples/Makefile.am
7index 4b9b449..232cd19 100644
8--- a/examples/Makefile.am
9+++ b/examples/Makefile.am
10@@ -38,6 +38,7 @@ AM_CPPFLAGS = \
11 -I$(top_srcdir)/clutter \
12 -I$(top_builddir)/clutter
13
14-noinst_PROGRAMS = $(all_examples)
15+exampledir = $(pkglibdir)/examples
16+example_PROGRAMS = $(all_examples)
17
18 EXTRA_DIST = redhand.png
diff --git a/meta/recipes-graphics/clutter/clutter-1.0_1.18.2.bb b/meta/recipes-graphics/clutter/clutter-1.0_1.18.2.bb
new file mode 100644
index 0000000000..452e7eefd0
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-1.0_1.18.2.bb
@@ -0,0 +1,8 @@
1require clutter-1.0.inc
2
3LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
4
5SRC_URI[archive.md5sum] = "471f5ea423e20d4140c7771873daef29"
6SRC_URI[archive.sha256sum] = "f9fe12e6148426063c90e67dfaeb56013bf1aea224ef502223d13eab6c1add63"
7
8SRC_URI += "file://install-examples.patch"
diff --git a/meta/recipes-graphics/clutter/clutter-gst-1.0-1.6.0/cogl-1.14.patch b/meta/recipes-graphics/clutter/clutter-gst-1.0-1.6.0/cogl-1.14.patch
new file mode 100644
index 0000000000..d009e44c34
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-gst-1.0-1.6.0/cogl-1.14.patch
@@ -0,0 +1,48 @@
1From 1ae4c3e7b1e2c33892590f9ac7bf0e892a5bcbd5 Mon Sep 17 00:00:00 2001
2From: Tomas Frydrych <tomas@sleepfive.com>
3Date: Thu, 11 Oct 2012 08:53:03 +0100
4Subject: [PATCH] ClutterGstVideoSink: fix includes so we can build against
5 cogl-1.14
6
7Cogl 1.14 exposes various GL types through the public API but it does not
8pull in the GL type definitions through its public headers; specifically
9compilation will fail due to undefined GL_TEXTURE_2D. So include the headers
10the hard way.
11
12Upstream-Status: Submitted @ https://bugzilla.gnome.org/show_bug.cgi?id=700509
13Signed-off-by: Tomas Frydrych <tomas@sleepfive.com>
14---
15 clutter-gst/clutter-gst-video-sink.c | 17 +++++++++++++++++
16 1 file changed, 17 insertions(+)
17
18diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
19index 9b4b53c..f092581 100644
20--- a/clutter-gst/clutter-gst-video-sink.c
21+++ b/clutter-gst/clutter-gst-video-sink.c
22@@ -42,6 +42,23 @@
23 #include "config.h"
24 #endif
25
26+/*
27+ * cogl-1.14 exposes generic GL types in the API, but not the actual includes.
28+ */
29+#include <cogl/cogl.h>
30+
31+#ifdef COGL_HAS_GLES1
32+#include <GLES/gl.h>
33+#include <GLES/glext.h>
34+#elif COGL_HAS_GLES2
35+#include <GLES2/gl2.h>
36+#include <GLES2/gl2ext.h>
37+#elif COGL_HAS_GL
38+#include <GL/gl.h>
39+#else
40+#error Unknown cogl configuration
41+#endif
42+
43 #include "clutter-gst-video-sink.h"
44 #include "clutter-gst-util.h"
45 #include "clutter-gst-private.h"
46--
471.7.10.4
48
diff --git a/meta/recipes-graphics/clutter/clutter-gst-1.0-1.6.0/enable-tests.patch b/meta/recipes-graphics/clutter/clutter-gst-1.0-1.6.0/enable-tests.patch
new file mode 100644
index 0000000000..b3aec392e6
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-gst-1.0-1.6.0/enable-tests.patch
@@ -0,0 +1,23 @@
1Install example binary needed for core-image-clutter
2
3Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
4
5Upstream-Status: Inappropriate [configuration]
6
7Imported from clutter-gst-1.8 package, git://git.openembedded.org/openembedded,
8commit ae28ee3f7a060b9e0d13154a84f2444a98490b5b, updated for clutter-gst 1.6
9
10Signed-off-by: Tomas Frydrych <tomas@sleepfive.com>
11
12Index: git/examples/Makefile.am
13===================================================================
14--- git.orig/examples/Makefile.am 2011-01-31 10:14:23.000000000 +0800
15+++ git/examples/Makefile.am 2011-01-31 10:14:34.000000000 +0800
16@@ -1,6 +1,6 @@
17 NULL = #
18
19-noinst_PROGRAMS = video-player video-sink video-sink-navigation
20+bin_PROGRAMS = video-player video-sink video-sink-navigation
21
22 INCLUDES = -I$(top_srcdir) \
23 $(MAINTAINER_CFLAGS) \
diff --git a/meta/recipes-graphics/clutter/clutter-gst-1.0.inc b/meta/recipes-graphics/clutter/clutter-gst-1.0.inc
new file mode 100644
index 0000000000..bb05ede624
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-gst-1.0.inc
@@ -0,0 +1,18 @@
1SUMMARY = "GStreamer integration library for Clutter"
2HOMEPAGE = "http://www.clutter-project.org/"
3LICENSE = "LGPLv2+"
4
5inherit clutter
6
7SRC_URI += "file://enable-tests.patch"
8
9DEPENDS = "gst-plugins-base gst-plugins-bad clutter-1.0"
10RDEPENDS_${PN} += "gst-meta-base"
11PACKAGES =+ "${PN}-examples"
12
13EXTRA_OECONF += "--disable-introspection"
14
15FILES_${PN} += "${libdir}/gstreamer-0.10/lib*.so"
16FILES_${PN}-dev += "${libdir}/gstreamer-0.10/*.la"
17FILES_${PN}-dbg += "${libdir}/gstreamer-0.10/.debug/lib*.so"
18FILES_${PN}-examples = "${bindir}/video-player ${bindir}/video-sink"
diff --git a/meta/recipes-graphics/clutter/clutter-gst-1.0_1.6.0.bb b/meta/recipes-graphics/clutter/clutter-gst-1.0_1.6.0.bb
new file mode 100644
index 0000000000..dc5cc13053
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-gst-1.0_1.6.0.bb
@@ -0,0 +1,9 @@
1require clutter-gst-1.0.inc
2
3SRC_URI += "file://cogl-1.14.patch"
4
5LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
6 file://clutter-gst/clutter-gst.h;beginline=1;endline=24;md5=95baacba194e814c110ea3bdf25ddbf4"
7
8SRC_URI[archive.md5sum] = "d60ab0118730cecd5dd9988ad7da034b"
9SRC_URI[archive.sha256sum] = "abc879cdd562f1640a825131405f4327a427bfe65b805ebc25d0c78909c8c622"
diff --git a/meta/recipes-graphics/clutter/clutter-gtk-1.0.inc b/meta/recipes-graphics/clutter/clutter-gtk-1.0.inc
new file mode 100644
index 0000000000..45898b4d60
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-gtk-1.0.inc
@@ -0,0 +1,12 @@
1SUMMARY = "Library for embedding a Clutter canvas in a GTK+ application"
2HOMEPAGE = "http://www.clutter-project.org/"
3LICENSE = "LGPLv2+"
4
5inherit clutter
6
7DEPENDS = "clutter-1.0 gtk+3"
8PACKAGES =+ "${PN}-examples"
9AUTOTOOLS_AUXDIR = "${S}/build"
10
11EXTRA_OECONF += "--disable-introspection"
12
diff --git a/meta/recipes-graphics/clutter/clutter-gtk-1.0_1.4.4.bb b/meta/recipes-graphics/clutter/clutter-gtk-1.0_1.4.4.bb
new file mode 100644
index 0000000000..37a035c514
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-gtk-1.0_1.4.4.bb
@@ -0,0 +1,6 @@
1require clutter-gtk-1.0.inc
2
3LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34"
4
5SRC_URI[archive.md5sum] = "ef50b52ffc2a18704eb62f13dd8d6198"
6SRC_URI[archive.sha256sum] = "bc3108594a01a08bb6d9b538afe995e4fd78634a8356064ee8137d87aad51b2e"