diff options
Diffstat (limited to 'meta/recipes-graphics/cogl/cogl-1.0.inc')
-rw-r--r-- | meta/recipes-graphics/cogl/cogl-1.0.inc | 58 |
1 files changed, 58 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 @@ +DESCRIPTION = "a modern 3D graphics API with associated utility APIs" +HOMEPAGE = "http://wiki.clutter-project.org/wiki/Cogl" +LICENSE = "LGPLv2.1+" + +inherit clutter + +DEPENDS = "gtk-doc-native pango glib-2.0 gdk-pixbuf" +PACKAGES =+ "${PN}-examples" +AUTOTOOLS_AUXDIR = "${S}/build" + +# Extra DEPENDS for PACKAGECONFIG +EDEPENDS_GL = "virtual/libgl libdrm" +EDEPENDS_GLES2 = "virtual/libgles2" +EDEPENDS_KMS = "libdrm virtual/egl" +EDEPENDS_EGL = "virtual/egl" +EDEPENDS_X11 = "virtual/libx11 libxcomposite libxfixes libxi" + +# Extra RDEPENDS for PACKAGECONFIG +# This has to be explictly listed, because cogl dlopens the backends +ERDEPENDS_GL = "libgl" +ERDEPENDS_GLES2 = "libgles2" + +EXTRA_OECONF += "--disable-introspection \ + --disable-gtk-doc \ + ${@get_fpu_setting(bb, d)} \ + --enable-examples-install \ + --enable-debug \ + --disable-gl \ + --disable-gles1 \ + --disable-gles2 \ + --disable-glx \ + " + +# GL flavours +PACKAGECONFIG[gl] = "--enable-gl,,${EDEPENDS_GL},${ERDPENDS_GL}" +PACKAGECONFIG[gles2] = "--enable-gles2,,${EDEPENDS_GLES2}, ${ERDEPENDS_GLES2}" + +# egl backends +PACKAGECONFIG[egl-kms] = "--enable-kms-egl-platform,,${EDEPENDS_KMS}" +PACKAGECONFIG[egl-null] = "--enable-null-egl-platform" +PACKAGECONFIG[egl-x11] = "--enable-xlib-egl-platform,,${EDEPENDS_X11}" + +# glx +PACKAGECONFIG[glx] = "--enable-gl --enable-glx, ${EDEPENDS_GL} ${EDEPENDS_X11}" + +# Default to GLX +PACKAGECONFIG ??= "glx" + +#Fix up some weirdness in the docs +do_configure_prepend() { + sed -i s:doc/reference/Makefile::g ${S}/configure.ac + sed -i s:doc::g ${S}/Makefile.am + + # Disable DOLT + sed -i -e 's/^DOLT//' ${S}/configure.ac +} + +FILES_${PN}-examples = "${bindir}/* ${datadir}/cogl/examples-data/*" |