Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | SUMMARY = "Modern 3D graphics API with associated utility APIs" |
| 2 | HOMEPAGE = "http://wiki.clutter-project.org/wiki/Cogl" |
| 3 | LICENSE = "MIT" |
| 4 | |
| 5 | inherit clutter |
| 6 | |
| 7 | DEPENDS = "glib-2.0 gdk-pixbuf" |
| 8 | PACKAGES =+ "${PN}-examples \ |
| 9 | libcogl libcogl-gles2 libcogl-pango libcogl-path \ |
| 10 | " |
| 11 | AUTOTOOLS_AUXDIR = "${S}/build" |
| 12 | |
| 13 | # Extra DEPENDS for PACKAGECONFIG |
| 14 | EDEPENDS_GL = "virtual/libgl libdrm" |
| 15 | EDEPENDS_GLES2 = "virtual/libgles2" |
| 16 | EDEPENDS_KMS = "libdrm virtual/egl" |
| 17 | EDEPENDS_EGL = "virtual/egl" |
| 18 | EDEPENDS_X11 = "virtual/libx11 libxcomposite libxfixes libxi libxrandr" |
| 19 | EDEPENDS_WAYLAND = "virtual/mesa wayland" |
| 20 | |
| 21 | # Extra RDEPENDS for PACKAGECONFIG |
| 22 | # This has to be explictly listed, because cogl dlopens the backends |
| 23 | ERDEPENDS_GL = "libgl" |
| 24 | ERDEPENDS_GLES2 = "libgles2" |
| 25 | |
| 26 | # GLESv1 is rarely tested, so disable it |
| 27 | EXTRA_OECONF += "--disable-introspection \ |
| 28 | --enable-examples-install \ |
| 29 | --enable-debug \ |
| 30 | --disable-gles1 \ |
| 31 | --disable-cairo \ |
| 32 | " |
| 33 | |
| 34 | # OpenGL/GLX |
| 35 | PACKAGECONFIG[glx] = "--enable-gl --enable-glx,--disable-gl --disable-glx,${EDEPENDS_GL} ${EDEPENDS_X11},${ERDEPENDS_GL}" |
| 36 | |
| 37 | # GLESv2 |
| 38 | PACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,${EDEPENDS_GLES2}, ${ERDEPENDS_GLES2}" |
| 39 | |
| 40 | # EGL backends |
| 41 | PACKAGECONFIG[egl-kms] = "--enable-kms-egl-platform,--disable-kms-egl-platform,${EDEPENDS_KMS}" |
| 42 | PACKAGECONFIG[egl-null] = "--enable-null-egl-platform,--disable-null-egl-platform" |
| 43 | PACKAGECONFIG[egl-x11] = "--enable-xlib-egl-platform,--disable-xlib-egl-platform,${EDEPENDS_X11} ${EDEPENDS_EGL}" |
| 44 | PACKAGECONFIG[egl-wayland] = "--enable-wayland-egl-platform,--disable-wayland-egl-platform,${EDEPENDS_WAYLAND}" |
| 45 | |
| 46 | # Wayland (server-side) |
| 47 | PACKAGECONFIG[wayland-server] = "--enable-wayland-egl-server,--disable-wayland-egl-server,${EDEPENDS_WAYLAND}" |
| 48 | |
| 49 | # Support rendering text directly with Pango |
| 50 | PACKAGECONFIG[cogl-pango] = "--enable-cogl-pango,--disable-cogl-pango,pango" |
| 51 | |
| 52 | # Respect the DISTRO_FEATURES to pull in GLX or Wayland as appropriate by |
| 53 | # default. |
| 54 | PACKAGECONFIG ??= "cogl-pango gles2 \ |
| 55 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', '', d)} \ |
| 56 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx egl-x11', '', d)} \ |
| 57 | " |
| 58 | |
| 59 | |
| 60 | FILES_${PN}-examples = "${bindir}/* ${datadir}/cogl/examples-data/*" |
| 61 | FILES_libcogl = "${libdir}/libcogl${SOLIBS}" |
| 62 | FILES_libcogl-gles2 = "${libdir}/libcogl-gles2${SOLIBS}" |
| 63 | FILES_libcogl-pango = "${libdir}/libcogl-pango${SOLIBS}" |
| 64 | |
| 65 | FILES_libcogl-path = "${libdir}/libcogl-path${SOLIBS}" |
| 66 | |
| 67 | # For backwards compatibility after Debian-renaming |
| 68 | RPROVIDES_libcogl = "cogl-1.0" |
| 69 | RCONFLICTS_libcogl = "cogl-1.0" |
| 70 | RREPLACES_libcogl = "cogl-1.0" |