diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 14:36:22 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 15:32:53 +0200 |
commit | f4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch) | |
tree | 487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-graphics/clutter | |
download | poky-f4cf9fe05bb3f32fabea4e54dd92d368967a80da.tar.gz |
initial commit for Enea Linux 4.0
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-graphics/clutter')
9 files changed, 197 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..3ca19b34cb --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-1.0.inc | |||
@@ -0,0 +1,45 @@ | |||
1 | SUMMARY = "Graphics library for creating hardware-accelerated user interfaces" | ||
2 | HOMEPAGE = "http://www.clutter-project.org/" | ||
3 | LICENSE = "LGPLv2.1+" | ||
4 | |||
5 | inherit clutter | ||
6 | |||
7 | DEPENDS = "pango glib-2.0 json-glib atk udev cogl-1.0" | ||
8 | PACKAGE_BEFORE_PN += "${PN}-examples" | ||
9 | AUTOTOOLS_AUXDIR = "${S}/build" | ||
10 | |||
11 | EDEPENDS_X11 = "virtual/libx11 libxi libxfixes" | ||
12 | EDEPENDS_GLX = "virtual/libgl" | ||
13 | EDEPENDS_EGL = "virtual/egl" | ||
14 | EDEPENDS_WAYLAND = "wayland libxkbcommon gdk-pixbuf" | ||
15 | |||
16 | EDEPENDS_EVDEV = "libxkbcommon" | ||
17 | ERDEPENDS_EVDEV = "xkeyboard-config" | ||
18 | |||
19 | # Disable pretty much everything, override in platform specific set up | ||
20 | EXTRA_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 | |||
28 | PACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,${EDEPENDS_X11}" | ||
29 | PACKAGECONFIG[glx] = ",,${EDEPENDS_X11} ${EDEPENDS_GLX}" | ||
30 | PACKAGECONFIG[egl] = "--enable-egl-backend,--disable-egl-backend,${EDEPENDS_EGL}" | ||
31 | PACKAGECONFIG[evdev] = "--enable-evdev-input,--disable-evdev-input,${EDEPENDS_EVDEV},${ERDEPENDS_EVDEV}" | ||
32 | PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,${EDEPENDS_WAYLAND}" | ||
33 | PACKAGECONFIG[wayland-compositor] = "--enable-wayland-compositor,--disable-wayland-compositor,wayland" | ||
34 | |||
35 | # Default configuration, distros might want to override | ||
36 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ | ||
37 | ${@base_contains('DISTRO_FEATURES', 'x11', 'glx x11', '', d)}" | ||
38 | |||
39 | FILES_${PN}-dbg += "${libdir}/clutter/examples/.debug" | ||
40 | FILES_${PN}-examples = "${libdir}/clutter/examples" | ||
41 | |||
42 | do_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..d96b038999 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-1.0/install-examples.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | Install the examples to $libdir/clutter/. | ||
2 | |||
3 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
4 | Upstream-Status: Inappropriate | ||
5 | |||
6 | diff --git a/examples/Makefile.am b/examples/Makefile.am | ||
7 | index 4b9b449..232cd19 100644 | ||
8 | --- a/examples/Makefile.am | ||
9 | +++ b/examples/Makefile.am | ||
10 | @@ -31,7 +31,7 @@ LDADD = \ | ||
11 | AM_CFLAGS = $(CLUTTER_CFLAGS) $(GDK_PIXBUF_CFLAGS) $(MAINTAINER_CFLAGS) | ||
12 | |||
13 | AM_CPPFLAGS = \ | ||
14 | - -DTESTS_DATADIR=\""$(abs_top_srcdir)/tests/data"\" \ | ||
15 | + -DTESTS_DATADIR=\""$(exampledir)"\" \ | ||
16 | -DG_DISABLE_SINGLE_INCLUDES \ | ||
17 | -DGLIB_DISABLE_DEPRECATION_WARNINGS \ | ||
18 | -I$(top_srcdir) \ | ||
19 | @@ -39,6 +39,8 @@ AM_CPPFLAGS = \ | ||
20 | -I$(top_srcdir)/clutter \ | ||
21 | -I$(top_builddir)/clutter | ||
22 | |||
23 | -noinst_PROGRAMS = $(all_examples) | ||
24 | +exampledir = $(pkglibdir)/examples | ||
25 | +example_PROGRAMS = $(all_examples) | ||
26 | +example_DATA = $(top_srcdir)/tests/data/redhand.png | ||
27 | |||
28 | -include $(top_srcdir)/build/autotools/Makefile.am.gitignore | ||
diff --git a/meta/recipes-graphics/clutter/clutter-1.0_1.16.2.bb b/meta/recipes-graphics/clutter/clutter-1.0_1.16.2.bb new file mode 100644 index 0000000000..584f9d03f3 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-1.0_1.16.2.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require clutter-1.0.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | ||
4 | |||
5 | SRC_URI[archive.md5sum] = "976614a2f7e60af088a0a460fe9d267e" | ||
6 | SRC_URI[archive.sha256sum] = "0cb7e88c80f43fc7fb869fc6d34c42e98aa1a0ef7aa02e6aeef1b099ad33df42" | ||
7 | |||
8 | SRC_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 @@ | |||
1 | From 1ae4c3e7b1e2c33892590f9ac7bf0e892a5bcbd5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Tomas Frydrych <tomas@sleepfive.com> | ||
3 | Date: Thu, 11 Oct 2012 08:53:03 +0100 | ||
4 | Subject: [PATCH] ClutterGstVideoSink: fix includes so we can build against | ||
5 | cogl-1.14 | ||
6 | |||
7 | Cogl 1.14 exposes various GL types through the public API but it does not | ||
8 | pull in the GL type definitions through its public headers; specifically | ||
9 | compilation will fail due to undefined GL_TEXTURE_2D. So include the headers | ||
10 | the hard way. | ||
11 | |||
12 | Upstream-Status: Submitted @ https://bugzilla.gnome.org/show_bug.cgi?id=700509 | ||
13 | Signed-off-by: Tomas Frydrych <tomas@sleepfive.com> | ||
14 | --- | ||
15 | clutter-gst/clutter-gst-video-sink.c | 17 +++++++++++++++++ | ||
16 | 1 file changed, 17 insertions(+) | ||
17 | |||
18 | diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c | ||
19 | index 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 | -- | ||
47 | 1.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 @@ | |||
1 | Install example binary needed for core-image-clutter | ||
2 | |||
3 | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> | ||
4 | |||
5 | Upstream-Status: Inappropriate [configuration] | ||
6 | |||
7 | Imported from clutter-gst-1.8 package, git://git.openembedded.org/openembedded, | ||
8 | commit ae28ee3f7a060b9e0d13154a84f2444a98490b5b, updated for clutter-gst 1.6 | ||
9 | |||
10 | Signed-off-by: Tomas Frydrych <tomas@sleepfive.com> | ||
11 | |||
12 | Index: 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 @@ | |||
1 | SUMMARY = "GStreamer integration library for Clutter" | ||
2 | HOMEPAGE = "http://www.clutter-project.org/" | ||
3 | LICENSE = "LGPLv2+" | ||
4 | |||
5 | inherit clutter | ||
6 | |||
7 | SRC_URI += "file://enable-tests.patch" | ||
8 | |||
9 | DEPENDS = "gst-plugins-base gst-plugins-bad clutter-1.0" | ||
10 | RDEPENDS_${PN} += "gst-meta-base" | ||
11 | PACKAGES =+ "${PN}-examples" | ||
12 | |||
13 | EXTRA_OECONF += "--disable-introspection" | ||
14 | |||
15 | FILES_${PN} += "${libdir}/gstreamer-0.10/lib*.so" | ||
16 | FILES_${PN}-dev += "${libdir}/gstreamer-0.10/*.la" | ||
17 | FILES_${PN}-dbg += "${libdir}/gstreamer-0.10/.debug/lib*.so" | ||
18 | FILES_${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 @@ | |||
1 | require clutter-gst-1.0.inc | ||
2 | |||
3 | SRC_URI += "file://cogl-1.14.patch" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \ | ||
6 | file://clutter-gst/clutter-gst.h;beginline=1;endline=24;md5=95baacba194e814c110ea3bdf25ddbf4" | ||
7 | |||
8 | SRC_URI[archive.md5sum] = "d60ab0118730cecd5dd9988ad7da034b" | ||
9 | SRC_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 @@ | |||
1 | SUMMARY = "Library for embedding a Clutter canvas in a GTK+ application" | ||
2 | HOMEPAGE = "http://www.clutter-project.org/" | ||
3 | LICENSE = "LGPLv2+" | ||
4 | |||
5 | inherit clutter | ||
6 | |||
7 | DEPENDS = "clutter-1.0 gtk+3" | ||
8 | PACKAGES =+ "${PN}-examples" | ||
9 | AUTOTOOLS_AUXDIR = "${S}/build" | ||
10 | |||
11 | EXTRA_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 @@ | |||
1 | require clutter-gtk-1.0.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34" | ||
4 | |||
5 | SRC_URI[archive.md5sum] = "ef50b52ffc2a18704eb62f13dd8d6198" | ||
6 | SRC_URI[archive.sha256sum] = "bc3108594a01a08bb6d9b538afe995e4fd78634a8356064ee8137d87aad51b2e" | ||