summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/clutter
diff options
context:
space:
mode:
authorAdrian Dudau <adrian.dudau@enea.com>2013-12-12 13:38:32 +0100
committerAdrian Dudau <adrian.dudau@enea.com>2013-12-12 13:50:20 +0100
commite2e6f6fe07049f33cb6348780fa975162752e421 (patch)
treeb1813295411235d1297a0ed642b1346b24fdfb12 /meta/recipes-graphics/clutter
downloadpoky-e2e6f6fe07049f33cb6348780fa975162752e421.tar.gz
initial commit of Enea Linux 3.1
Migrated from the internal git server on the dora-enea branch Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-graphics/clutter')
-rw-r--r--meta/recipes-graphics/clutter/clutter-1.0.inc47
-rw-r--r--meta/recipes-graphics/clutter/clutter-1.0_1.14.4.bb7
-rw-r--r--meta/recipes-graphics/clutter/clutter-1.14/enable_tests.patch36
-rw-r--r--meta/recipes-graphics/clutter/clutter-1.14/fix-wayland-deps.patch57
-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-gst-1.6/cogl-1.14.patch48
-rw-r--r--meta/recipes-graphics/clutter/clutter-gst/enable-tests.patch23
-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.2.bb6
10 files changed, 263 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..1356586fd8
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-1.0.inc
@@ -0,0 +1,47 @@
1DESCRIPTION = "Clutter graphics library"
2HOMEPAGE = "http://www.clutter-project.org/"
3LICENSE = "LGPLv2.1+"
4
5inherit clutter
6
7SRC_URI += "file://enable_tests.patch \
8 file://fix-wayland-deps.patch"
9
10DEPENDS = "pango glib-2.0 json-glib atk udev cogl-1.0"
11PACKAGES =+ "${PN}-examples"
12AUTOTOOLS_AUXDIR = "${S}/build"
13
14EDEPENDS_X11 = "virtual/libx11 libxi libxfixes"
15EDEPENDS_GLX = "virtual/libgl"
16EDEPENDS_EGL = "virtual/egl"
17EDEPENDS_WAYLAND = "wayland libxkbcommon gdk-pixbuf"
18
19EDEPENDS_EVDEV = "libxkbcommon"
20ERDEPENDS_EVDEV = "xkeyboard-config"
21
22# Disable pretty much everything, override in platform specific set up
23EXTRA_OECONF += "--disable-introspection \
24 --disable-quartz-backend \
25 --disable-win32-backend \
26 --disable-gdk-backend \
27 --disable-cex100-backend \
28 --disable-tslib-input \
29 "
30
31PACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,${EDEPENDS_X11}"
32PACKAGECONFIG[glx] = ",,${EDEPENDS_X11} ${EDEPENDS_GLX}"
33PACKAGECONFIG[egl] = "--enable-egl-backend,--disable-egl-backend,${EDEPENDS_EGL}"
34PACKAGECONFIG[evdev] = "--enable-evdev-input,--disable-evdev-input,${EDEPENDS_EVDEV},${ERDEPENDS_EVDEV}"
35PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,${EDEPENDS_WAYLAND}"
36PACKAGECONFIG[wayland-compositor] = "--enable-wayland-compositor,--disable-wayland-compositor,wayland"
37
38# Default configuration, distros might want to override
39PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
40 ${@base_contains('DISTRO_FEATURES', 'x11', 'glx x11', '', d)}"
41
42FILES_${PN}-examples = "${bindir}/test-* ${pkgdatadir}/redhand.png"
43
44do_configure_prepend() {
45 # see https://bugzilla.gnome.org/show_bug.cgi?id=661128 for this
46 touch -t 200001010000 ${S}/po/clutter-1.0.pot
47}
diff --git a/meta/recipes-graphics/clutter/clutter-1.0_1.14.4.bb b/meta/recipes-graphics/clutter/clutter-1.0_1.14.4.bb
new file mode 100644
index 0000000000..35824c60b5
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-1.0_1.14.4.bb
@@ -0,0 +1,7 @@
1
2require clutter-1.0.inc
3
4LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
5
6SRC_URI[archive.md5sum] = "c072e4c27e69368f2b877ea4f6da2cdf"
7SRC_URI[archive.sha256sum] = "c996d91fff6fff24d9e23dcd545439ebc6b999fb1cf9ee44c28ca54c49c0ee1c"
diff --git a/meta/recipes-graphics/clutter/clutter-1.14/enable_tests.patch b/meta/recipes-graphics/clutter/clutter-1.14/enable_tests.patch
new file mode 100644
index 0000000000..f97d598090
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-1.14/enable_tests.patch
@@ -0,0 +1,36 @@
1Make tests installable
2
3The test applications are useful for image testing.
4
5Imported from clutter 1.8 package, git://git.openembedded.org/openembedded,
6commit ae28ee3f7a060b9e0d13154a84f2444a98490b5b, updated patch header.
7
8Upstream-Status: Inappropriate [configuration]
9Signed-off-by: Tomas Frydrych <tomas@sleepfive.com>
10
11Index: git/tests/interactive/Makefile.am
12===================================================================
13--- git.orig/tests/interactive/Makefile.am 2009-11-30 17:39:46.000000000 +0000
14+++ git/tests/interactive/Makefile.am 2009-11-30 17:42:30.000000000 +0000
15@@ -88,7 +88,7 @@
16
17 common_ldadd = $(top_builddir)/clutter/libclutter-@CLUTTER_WINSYS@-@CLUTTER_API_VERSION@.la
18
19-noinst_PROGRAMS = test-interactive
20+bin_PROGRAMS = test-interactive
21
22 test_interactive_SOURCES = test-main.c $(UNIT_TESTS)
23 test_interactive_CFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS)
24Index: git/tests/interactive/test-actors.c
25===================================================================
26--- git.orig/tests/interactive/test-actors.c 2009-11-30 17:39:46.000000000 +0000
27+++ git/tests/interactive/test-actors.c 2009-11-30 17:43:03.000000000 +0000
28@@ -178,7 +178,7 @@
29 oh->scaler_1 = clutter_behaviour_scale_new (alpha, 0.5, 0.5, 1.0, 1.0);
30 oh->scaler_2 = clutter_behaviour_scale_new (alpha, 1.0, 1.0, 0.5, 0.5);
31
32- file = g_build_filename (TESTS_DATADIR, "redhand.png", NULL);
33+ file = g_build_filename (TESTS_DATADIR, "/usr/share/clutter/redhand.png", NULL);
34 real_hand = clutter_texture_new_from_file (file, &error);
35 if (real_hand == NULL)
36 g_error ("image load failed: %s", error->message);
diff --git a/meta/recipes-graphics/clutter/clutter-1.14/fix-wayland-deps.patch b/meta/recipes-graphics/clutter/clutter-1.14/fix-wayland-deps.patch
new file mode 100644
index 0000000000..f5af73c9fc
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-1.14/fix-wayland-deps.patch
@@ -0,0 +1,57 @@
1Upstream-Status: Backport
2Signed-off-by: Ross Burton <ross.burton@intel.com>
3
4From 74f9d8a597acf0fd8458e3d6cb0475b8d9a0a6ba Mon Sep 17 00:00:00 2001
5From: Emmanuele Bassi <ebassi@gnome.org>
6Date: Thu, 27 Jun 2013 16:42:40 +0100
7Subject: [PATCH] build: Enable Cogl support with Wayland
8
9The Wayland backend is based on Cogl, so we need to turn on the
10SUPPORT_COGL flag to avoid breaking the build; this always went
11unnoticed because we usually build the Wayland client backend
12with the X11 backend.
13
14Reported-by: Ross Burton <ross.burton@intel.com>
15(cherry picked from commit 1fb0295ba162507fb798b2b7030f0f45ff252f27)
16
17Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
18---
19 configure.ac | 6 +++++-
20 1 file changed, 5 insertions(+), 1 deletion(-)
21
22diff --git a/configure.ac b/configure.ac
23index f5afe12..355c95b 100644
24--- a/configure.ac
25+++ b/configure.ac
26@@ -310,6 +310,7 @@ AS_IF([test "x$enable_wayland" = "xyes"],
27 experimental_backend="yes"
28
29 SUPPORT_WAYLAND=1
30+ SUPPORT_COGL=1
31
32 PKG_CHECK_EXISTS([wayland-client wayland-cursor xkbcommon gdk-pixbuf-2.0],
33 [
34@@ -337,7 +338,10 @@ AS_IF([test "x$enable_wayland_compositor" = "xyes"],
35 [
36 PKG_CHECK_EXISTS([wayland-server],
37 [BACKEND_PC_FILES="$BACKEND_PC_FILES wayland-server"], [])
38+
39 SUPPORT_WAYLAND_COMPOSITOR=1
40+ SUPPORT_COGL=1
41+
42 CLUTTER_CONFIG_DEFINES="$CLUTTER_CONFIG_DEFINES
43 #define CLUTTER_HAS_WAYLAND_COMPOSITOR_SUPPORT 1"
44 AC_DEFINE([HAVE_CLUTTER_WAYLAND_COMPOSITOR], [1], [Have Wayland compositor support])
45@@ -359,8 +363,8 @@ AS_IF([test "x$enable_cex100" = "xyes"],
46
47 experimental_backend="yes"
48
49- SUPPORT_COGL=1
50 SUPPORT_CEX100=1
51+ SUPPORT_COGL=1
52
53 have_gdl=no
54 AC_CHECK_HEADERS([libgdl.h], [have_gdl=yes])
55--
561.7.10.4
57
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..b5edcae476
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-gst-1.0.inc
@@ -0,0 +1,18 @@
1DESCRIPTION = "Clutter GStreamer"
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-gst-1.6/cogl-1.14.patch b/meta/recipes-graphics/clutter/clutter-gst-1.6/cogl-1.14.patch
new file mode 100644
index 0000000000..d009e44c34
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-gst-1.6/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/enable-tests.patch b/meta/recipes-graphics/clutter/clutter-gst/enable-tests.patch
new file mode 100644
index 0000000000..b3aec392e6
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-gst/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-gtk-1.0.inc b/meta/recipes-graphics/clutter/clutter-gtk-1.0.inc
new file mode 100644
index 0000000000..3717f48cba
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-gtk-1.0.inc
@@ -0,0 +1,12 @@
1DESCRIPTION = "ClutterGtk"
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.2.bb b/meta/recipes-graphics/clutter/clutter-gtk-1.0_1.4.2.bb
new file mode 100644
index 0000000000..64eb70c8ca
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-gtk-1.0_1.4.2.bb
@@ -0,0 +1,6 @@
1require clutter-gtk-1.0.inc
2
3LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34"
4
5SRC_URI[archive.md5sum] = "842601b584daf4447a46799a4ba88df6"
6SRC_URI[archive.sha256sum] = "dc3ec6e90bc742c8a68ed7fa4c0d25b9b376828f1a7f013c363fbaf14f3a6974"