summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/cogl
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/cogl')
-rw-r--r--meta/recipes-graphics/cogl/cogl-1.0.inc58
-rw-r--r--meta/recipes-graphics/cogl/cogl-1.0_1.14.0.bb7
2 files changed, 65 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..17d8629eb9
--- /dev/null
+++ b/meta/recipes-graphics/cogl/cogl-1.0.inc
@@ -0,0 +1,58 @@
1DESCRIPTION = "a modern 3D graphics API with associated utility APIs"
2HOMEPAGE = "http://wiki.clutter-project.org/wiki/Cogl"
3LICENSE = "LGPLv2.1+"
4
5inherit clutter
6
7DEPENDS = "gtk-doc-native pango glib-2.0 gdk-pixbuf"
8PACKAGES =+ "${PN}-examples"
9AUTOTOOLS_AUXDIR = "${S}/build"
10
11# Extra DEPENDS for PACKAGECONFIG
12EDEPENDS_GL = "virtual/libgl libdrm"
13EDEPENDS_GLES2 = "virtual/libgles2"
14EDEPENDS_KMS = "libdrm virtual/egl"
15EDEPENDS_EGL = "virtual/egl"
16EDEPENDS_X11 = "virtual/libx11 libxcomposite libxfixes libxi"
17
18# Extra RDEPENDS for PACKAGECONFIG
19# This has to be explictly listed, because cogl dlopens the backends
20ERDEPENDS_GL = "libgl"
21ERDEPENDS_GLES2 = "libgles2"
22
23EXTRA_OECONF += "--disable-introspection \
24 --disable-gtk-doc \
25 ${@get_fpu_setting(bb, d)} \
26 --enable-examples-install \
27 --enable-debug \
28 --disable-gl \
29 --disable-gles1 \
30 --disable-gles2 \
31 --disable-glx \
32 "
33
34# GL flavours
35PACKAGECONFIG[gl] = "--enable-gl,,${EDEPENDS_GL},${ERDPENDS_GL}"
36PACKAGECONFIG[gles2] = "--enable-gles2,,${EDEPENDS_GLES2}, ${ERDEPENDS_GLES2}"
37
38# egl backends
39PACKAGECONFIG[egl-kms] = "--enable-kms-egl-platform,,${EDEPENDS_KMS}"
40PACKAGECONFIG[egl-null] = "--enable-null-egl-platform"
41PACKAGECONFIG[egl-x11] = "--enable-xlib-egl-platform,,${EDEPENDS_X11}"
42
43# glx
44PACKAGECONFIG[glx] = "--enable-gl --enable-glx, ${EDEPENDS_GL} ${EDEPENDS_X11}"
45
46# Default to GLX
47PACKAGECONFIG ??= "glx"
48
49#Fix up some weirdness in the docs
50do_configure_prepend() {
51 sed -i s:doc/reference/Makefile::g ${S}/configure.ac
52 sed -i s:doc::g ${S}/Makefile.am
53
54 # Disable DOLT
55 sed -i -e 's/^DOLT//' ${S}/configure.ac
56}
57
58FILES_${PN}-examples = "${bindir}/* ${datadir}/cogl/examples-data/*"
diff --git a/meta/recipes-graphics/cogl/cogl-1.0_1.14.0.bb b/meta/recipes-graphics/cogl/cogl-1.0_1.14.0.bb
new file mode 100644
index 0000000000..0f40c595ac
--- /dev/null
+++ b/meta/recipes-graphics/cogl/cogl-1.0_1.14.0.bb
@@ -0,0 +1,7 @@
1
2require cogl-1.0.inc
3
4LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
5
6SRC_URI[archive.md5sum] = "7eabaf4241c0b87cc9e3b0fa23fd0315"
7SRC_URI[archive.sha256sum] = "276e8c9f5ff0fcd57c1eaf74cc245f41ad469a95a18ac831fac2d5960baa5ae8"