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/cogl | |
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/cogl')
-rw-r--r-- | meta/recipes-graphics/cogl/cogl-1.0.inc | 81 | ||||
-rw-r--r-- | meta/recipes-graphics/cogl/cogl-1.0/kms-include-stddef.h-before-drm.h.patch | 33 | ||||
-rw-r--r-- | meta/recipes-graphics/cogl/cogl-1.0_1.16.2.bb | 8 |
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 @@ | |||
1 | SUMMARY = "Modern 3D graphics API with associated utility APIs" | ||
2 | HOMEPAGE = "http://wiki.clutter-project.org/wiki/Cogl" | ||
3 | LICENSE = "LGPLv2.1+" | ||
4 | |||
5 | inherit clutter | ||
6 | |||
7 | DEPENDS = "glib-2.0 gdk-pixbuf" | ||
8 | PACKAGES =+ "${PN}-examples \ | ||
9 | libcogl libcogl-dev \ | ||
10 | libcogl-gles2 libcogl-gles2-dev \ | ||
11 | libcogl-pango libcogl-pango-dev" | ||
12 | AUTOTOOLS_AUXDIR = "${S}/build" | ||
13 | |||
14 | # Extra DEPENDS for PACKAGECONFIG | ||
15 | EDEPENDS_GL = "virtual/libgl libdrm" | ||
16 | EDEPENDS_GLES2 = "virtual/libgles2" | ||
17 | EDEPENDS_KMS = "libdrm virtual/egl" | ||
18 | EDEPENDS_EGL = "virtual/egl" | ||
19 | EDEPENDS_X11 = "virtual/libx11 libxcomposite libxfixes libxi libxrandr" | ||
20 | EDEPENDS_WAYLAND = "virtual/mesa wayland" | ||
21 | |||
22 | # Extra RDEPENDS for PACKAGECONFIG | ||
23 | # This has to be explictly listed, because cogl dlopens the backends | ||
24 | ERDEPENDS_GL = "libgl" | ||
25 | ERDEPENDS_GLES2 = "libgles2" | ||
26 | |||
27 | # GLESv1 is rarely tested, so disable it | ||
28 | EXTRA_OECONF += "--disable-introspection \ | ||
29 | --enable-examples-install \ | ||
30 | --enable-debug \ | ||
31 | --disable-gles1 \ | ||
32 | --disable-cairo \ | ||
33 | " | ||
34 | |||
35 | # OpenGL/GLX | ||
36 | PACKAGECONFIG[glx] = "--enable-gl --enable-glx,--disable-gl --disable-glx,${EDEPENDS_GL} ${EDEPENDS_X11},${ERDEPENDS_GL}" | ||
37 | |||
38 | # GLESv2 | ||
39 | PACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,${EDEPENDS_GLES2}, ${ERDEPENDS_GLES2}" | ||
40 | |||
41 | # EGL backends | ||
42 | PACKAGECONFIG[egl-kms] = "--enable-kms-egl-platform,--disable-kms-egl-platform,${EDEPENDS_KMS}" | ||
43 | PACKAGECONFIG[egl-null] = "--enable-null-egl-platform,--disable-null-egl-platform" | ||
44 | PACKAGECONFIG[egl-x11] = "--enable-xlib-egl-platform,--disable-xlib-egl-platform,${EDEPENDS_X11}" | ||
45 | PACKAGECONFIG[egl-wayland] = "--enable-wayland-egl-platform,--disable-wayland-egl-platform,${EDEPENDS_WAYLAND}" | ||
46 | |||
47 | # Wayland (server-side) | ||
48 | PACKAGECONFIG[wayland-server] = "--enable-wayland-egl-server,--disable-wayland-egl-server,${EDEPENDS_WAYLAND}" | ||
49 | |||
50 | # Support rendering text directly with Pango | ||
51 | PACKAGECONFIG[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. | ||
55 | PACKAGECONFIG ??= "cogl-pango gles2 \ | ||
56 | ${@base_contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', '', d)} \ | ||
57 | ${@base_contains('DISTRO_FEATURES', 'x11', 'glx', '', d)}" | ||
58 | |||
59 | FILES_${PN}-examples = "${bindir}/* ${datadir}/cogl/examples-data/*" | ||
60 | FILES_libcogl = "${libdir}/libcogl${SOLIBS}" | ||
61 | FILES_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" | ||
67 | FILES_libcogl-gles2 = "${libdir}/libcogl-gles2${SOLIBS}" | ||
68 | FILES_libcogl-gles2-dev = "${includedir}/cogl/cogl-gles2 \ | ||
69 | ${libdir}/libcogl-gles2${SOLIBSDEV} \ | ||
70 | ${libdir}/libcogl-gles2.la \ | ||
71 | ${libdir}/pkgconfig/cogl-gles2-experimental.pc" | ||
72 | FILES_libcogl-pango = "${libdir}/libcogl-pango${SOLIBS}" | ||
73 | FILES_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 | ||
79 | RPROVIDES_libcogl = "cogl-1.0" | ||
80 | RCONFLICTS_libcogl = "cogl-1.0" | ||
81 | RREPLACES_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 @@ | |||
1 | Upstream-Status: Submitted [cogl@lists.freedesktop.org] | ||
2 | |||
3 | From 5e4f4689308732a0570a1631169247157c59f064 Mon Sep 17 00:00:00 2001 | ||
4 | From: Andreas Oberritter <obi@saftware.de> | ||
5 | Date: Tue, 28 Jan 2014 18:36:04 +0100 | ||
6 | Subject: [PATCH] kms: include stddef.h before drm.h | ||
7 | |||
8 | Not doing so leads to the following error, if stddef.h is not included | ||
9 | indirectly 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 | |||
14 | Signed-off-by: Andreas Oberritter <obi@saftware.de> | ||
15 | --- | ||
16 | cogl/winsys/cogl-winsys-egl-kms.c | 1 + | ||
17 | 1 file changed, 1 insertion(+) | ||
18 | |||
19 | diff --git a/cogl/winsys/cogl-winsys-egl-kms.c b/cogl/winsys/cogl-winsys-egl-kms.c | ||
20 | index 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 | -- | ||
32 | 1.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 @@ | |||
1 | require cogl-1.0.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | ||
4 | |||
5 | SRC_URI += "file://kms-include-stddef.h-before-drm.h.patch" | ||
6 | |||
7 | SRC_URI[archive.md5sum] = "aaf32bde135cf3815aa3221726bad71e" | ||
8 | SRC_URI[archive.sha256sum] = "65be91591546ef6fdfec93a71979b2b108eee25edbc20c53190caafc9a92d4e7" | ||