summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/cogl/cogl-1.0.inc
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/cogl-1.0.inc
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/cogl-1.0.inc')
-rw-r--r--meta/recipes-graphics/cogl/cogl-1.0.inc81
1 files changed, 81 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"