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