summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/cogl
diff options
context:
space:
mode:
authorAdrian Dudau <adrian.dudau@enea.com>2014-06-26 14:36:22 +0200
committerAdrian Dudau <adrian.dudau@enea.com>2014-06-26 15:32:53 +0200
commitf4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch)
tree487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-graphics/cogl
downloadpoky-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/cogl')
-rw-r--r--meta/recipes-graphics/cogl/cogl-1.0.inc81
-rw-r--r--meta/recipes-graphics/cogl/cogl-1.0/kms-include-stddef.h-before-drm.h.patch33
-rw-r--r--meta/recipes-graphics/cogl/cogl-1.0_1.16.2.bb8
3 files changed, 122 insertions, 0 deletions
diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc b/meta/recipes-graphics/cogl/cogl-1.0.inc
new file mode 100644
index 0000000000..15bfea26bc
--- /dev/null
+++ b/meta/recipes-graphics/cogl/cogl-1.0.inc
@@ -0,0 +1,81 @@
1SUMMARY = "Modern 3D graphics API with associated utility APIs"
2HOMEPAGE = "http://wiki.clutter-project.org/wiki/Cogl"
3LICENSE = "LGPLv2.1+"
4
5inherit clutter
6
7DEPENDS = "glib-2.0 gdk-pixbuf"
8PACKAGES =+ "${PN}-examples \
9 libcogl libcogl-dev \
10 libcogl-gles2 libcogl-gles2-dev \
11 libcogl-pango libcogl-pango-dev"
12AUTOTOOLS_AUXDIR = "${S}/build"
13
14# Extra DEPENDS for PACKAGECONFIG
15EDEPENDS_GL = "virtual/libgl libdrm"
16EDEPENDS_GLES2 = "virtual/libgles2"
17EDEPENDS_KMS = "libdrm virtual/egl"
18EDEPENDS_EGL = "virtual/egl"
19EDEPENDS_X11 = "virtual/libx11 libxcomposite libxfixes libxi libxrandr"
20EDEPENDS_WAYLAND = "virtual/mesa wayland"
21
22# Extra RDEPENDS for PACKAGECONFIG
23# This has to be explictly listed, because cogl dlopens the backends
24ERDEPENDS_GL = "libgl"
25ERDEPENDS_GLES2 = "libgles2"
26
27# GLESv1 is rarely tested, so disable it
28EXTRA_OECONF += "--disable-introspection \
29 --enable-examples-install \
30 --enable-debug \
31 --disable-gles1 \
32 --disable-cairo \
33 "
34
35# OpenGL/GLX
36PACKAGECONFIG[glx] = "--enable-gl --enable-glx,--disable-gl --disable-glx,${EDEPENDS_GL} ${EDEPENDS_X11},${ERDEPENDS_GL}"
37
38# GLESv2
39PACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,${EDEPENDS_GLES2}, ${ERDEPENDS_GLES2}"
40
41# EGL backends
42PACKAGECONFIG[egl-kms] = "--enable-kms-egl-platform,--disable-kms-egl-platform,${EDEPENDS_KMS}"
43PACKAGECONFIG[egl-null] = "--enable-null-egl-platform,--disable-null-egl-platform"
44PACKAGECONFIG[egl-x11] = "--enable-xlib-egl-platform,--disable-xlib-egl-platform,${EDEPENDS_X11}"
45PACKAGECONFIG[egl-wayland] = "--enable-wayland-egl-platform,--disable-wayland-egl-platform,${EDEPENDS_WAYLAND}"
46
47# Wayland (server-side)
48PACKAGECONFIG[wayland-server] = "--enable-wayland-egl-server,--disable-wayland-egl-server,${EDEPENDS_WAYLAND}"
49
50# Support rendering text directly with Pango
51PACKAGECONFIG[cogl-pango] = "--enable-cogl-pango,--disable-cogl-pango,pango"
52
53# Respect the DISTRO_FEATURES to pull in GLX or Wayland as appropriate by
54# default.
55PACKAGECONFIG ??= "cogl-pango gles2 \
56 ${@base_contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', '', d)} \
57 ${@base_contains('DISTRO_FEATURES', 'x11', 'glx', '', d)}"
58
59FILES_${PN}-examples = "${bindir}/* ${datadir}/cogl/examples-data/*"
60FILES_libcogl = "${libdir}/libcogl${SOLIBS}"
61FILES_libcogl-dev = "${includedir}/cogl/cogl \
62 ${libdir}/libcogl${SOLIBSDEV} \
63 ${libdir}/libcogl.la \
64 ${libdir}/pkgconfig/cogl-1.0.pc \
65 ${libdir}/pkgconfig/cogl-2.0-experimental.pc \
66 ${libdir}/pkgconfig/cogl-gl-1.0.pc"
67FILES_libcogl-gles2 = "${libdir}/libcogl-gles2${SOLIBS}"
68FILES_libcogl-gles2-dev = "${includedir}/cogl/cogl-gles2 \
69 ${libdir}/libcogl-gles2${SOLIBSDEV} \
70 ${libdir}/libcogl-gles2.la \
71 ${libdir}/pkgconfig/cogl-gles2-experimental.pc"
72FILES_libcogl-pango = "${libdir}/libcogl-pango${SOLIBS}"
73FILES_libcogl-pango-dev = "${includedir}/cogl/cogl-pango \
74 ${libdir}/libcogl-pango${SOLIBSDEV} \
75 ${libdir}/libcogl-pango.la \
76 ${libdir}/pkgconfig/cogl-pango-1.0.pc"
77
78# For backwards compatibility after Debian-renaming
79RPROVIDES_libcogl = "cogl-1.0"
80RCONFLICTS_libcogl = "cogl-1.0"
81RREPLACES_libcogl = "cogl-1.0"
diff --git a/meta/recipes-graphics/cogl/cogl-1.0/kms-include-stddef.h-before-drm.h.patch b/meta/recipes-graphics/cogl/cogl-1.0/kms-include-stddef.h-before-drm.h.patch
new file mode 100644
index 0000000000..7cce279a19
--- /dev/null
+++ b/meta/recipes-graphics/cogl/cogl-1.0/kms-include-stddef.h-before-drm.h.patch
@@ -0,0 +1,33 @@
1Upstream-Status: Submitted [cogl@lists.freedesktop.org]
2
3From 5e4f4689308732a0570a1631169247157c59f064 Mon Sep 17 00:00:00 2001
4From: Andreas Oberritter <obi@saftware.de>
5Date: Tue, 28 Jan 2014 18:36:04 +0100
6Subject: [PATCH] kms: include stddef.h before drm.h
7
8Not doing so leads to the following error, if stddef.h is not included
9indirectly through EGL headers:
10
11| libdrm/drm.h:132:2: error: unknown type name 'size_t'
12| size_t name_len; /**< Length of name buffer */
13
14Signed-off-by: Andreas Oberritter <obi@saftware.de>
15---
16 cogl/winsys/cogl-winsys-egl-kms.c | 1 +
17 1 file changed, 1 insertion(+)
18
19diff --git a/cogl/winsys/cogl-winsys-egl-kms.c b/cogl/winsys/cogl-winsys-egl-kms.c
20index f7c9cfb..144ad9b 100644
21--- a/cogl/winsys/cogl-winsys-egl-kms.c
22+++ b/cogl/winsys/cogl-winsys-egl-kms.c
23@@ -40,6 +40,7 @@
24
25 #include <EGL/egl.h>
26 #include <EGL/eglext.h>
27+#include <stddef.h>
28 #include <drm.h>
29 #include <xf86drm.h>
30 #include <xf86drmMode.h>
31--
321.8.3.2
33
diff --git a/meta/recipes-graphics/cogl/cogl-1.0_1.16.2.bb b/meta/recipes-graphics/cogl/cogl-1.0_1.16.2.bb
new file mode 100644
index 0000000000..521158e7e4
--- /dev/null
+++ b/meta/recipes-graphics/cogl/cogl-1.0_1.16.2.bb
@@ -0,0 +1,8 @@
1require cogl-1.0.inc
2
3LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
4
5SRC_URI += "file://kms-include-stddef.h-before-drm.h.patch"
6
7SRC_URI[archive.md5sum] = "aaf32bde135cf3815aa3221726bad71e"
8SRC_URI[archive.sha256sum] = "65be91591546ef6fdfec93a71979b2b108eee25edbc20c53190caafc9a92d4e7"