Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Graphics library for creating hardware-accelerated user interfaces" |
| 2 | HOMEPAGE = "http://www.clutter-project.org/" |
| 3 | LICENSE = "LGPLv2.1+" |
| 4 | |
| 5 | inherit clutter ptest-gnome |
| 6 | |
| 7 | DEPENDS = "pango glib-2.0 json-glib atk udev cogl-1.0" |
| 8 | PACKAGE_BEFORE_PN += "${PN}-examples" |
| 9 | AUTOTOOLS_AUXDIR = "${S}/build" |
| 10 | |
| 11 | EDEPENDS_X11 = "virtual/libx11 libxi libxfixes" |
| 12 | EDEPENDS_GLX = "virtual/libgl" |
| 13 | EDEPENDS_EGL = "virtual/egl" |
| 14 | EDEPENDS_WAYLAND = "wayland libxkbcommon gdk-pixbuf" |
| 15 | |
| 16 | EDEPENDS_EVDEV = "libxkbcommon" |
| 17 | ERDEPENDS_EVDEV = "xkeyboard-config" |
| 18 | |
| 19 | # Disable pretty much everything, override in platform specific set up |
| 20 | EXTRA_OECONF += "--disable-introspection \ |
| 21 | --disable-quartz-backend \ |
| 22 | --disable-win32-backend \ |
| 23 | --disable-gdk-backend \ |
| 24 | --disable-cex100-backend \ |
| 25 | --disable-tslib-input \ |
| 26 | " |
| 27 | |
| 28 | PACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,${EDEPENDS_X11}" |
| 29 | PACKAGECONFIG[glx] = ",,${EDEPENDS_X11} ${EDEPENDS_GLX}" |
| 30 | PACKAGECONFIG[egl] = "--enable-egl-backend,--disable-egl-backend,${EDEPENDS_EGL}" |
| 31 | PACKAGECONFIG[evdev] = "--enable-evdev-input,--disable-evdev-input,${EDEPENDS_EVDEV},${ERDEPENDS_EVDEV}" |
| 32 | PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,${EDEPENDS_WAYLAND}" |
| 33 | PACKAGECONFIG[wayland-compositor] = "--enable-wayland-compositor,--disable-wayland-compositor,wayland" |
| 34 | |
| 35 | # Default configuration, distros might want to override |
| 36 | PACKAGECONFIG ??= "egl \ |
| 37 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ |
| 38 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx x11', '', d)}" |
| 39 | |
| 40 | FILES_${PN}-dbg += "${libdir}/clutter/examples/.debug" |
| 41 | FILES_${PN}-examples = "${libdir}/clutter/examples" |
| 42 | |
| 43 | FILES_${PN}-dbg += "${libexecdir}/installed-tests/.debug" |
| 44 | |
| 45 | do_configure_prepend() { |
| 46 | # see https://bugzilla.gnome.org/show_bug.cgi?id=661128 for this |
| 47 | touch -t 200001010000 ${S}/po/clutter-1.0.pot |
| 48 | } |