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 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 5 | inherit clutter ptest-gnome distro_features_check upstream-version-is-even gobject-introspection |
| 6 | # depends on cogl-1.0 which needs opengl |
| 7 | REQUIRED_DISTRO_FEATURES ?= "opengl" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | |
| 9 | DEPENDS = "pango glib-2.0 json-glib atk udev cogl-1.0" |
| 10 | PACKAGE_BEFORE_PN += "${PN}-examples" |
| 11 | AUTOTOOLS_AUXDIR = "${S}/build" |
| 12 | |
| 13 | EDEPENDS_X11 = "virtual/libx11 libxi libxfixes" |
| 14 | EDEPENDS_GLX = "virtual/libgl" |
| 15 | EDEPENDS_EGL = "virtual/egl" |
| 16 | EDEPENDS_WAYLAND = "wayland libxkbcommon gdk-pixbuf" |
| 17 | |
| 18 | EDEPENDS_EVDEV = "libxkbcommon" |
| 19 | ERDEPENDS_EVDEV = "xkeyboard-config" |
| 20 | |
| 21 | # Disable pretty much everything, override in platform specific set up |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 22 | EXTRA_OECONF += "--disable-quartz-backend \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | --disable-win32-backend \ |
| 24 | --disable-gdk-backend \ |
| 25 | --disable-cex100-backend \ |
| 26 | --disable-tslib-input \ |
| 27 | " |
| 28 | |
| 29 | PACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,${EDEPENDS_X11}" |
| 30 | PACKAGECONFIG[glx] = ",,${EDEPENDS_X11} ${EDEPENDS_GLX}" |
| 31 | PACKAGECONFIG[egl] = "--enable-egl-backend,--disable-egl-backend,${EDEPENDS_EGL}" |
| 32 | PACKAGECONFIG[evdev] = "--enable-evdev-input,--disable-evdev-input,${EDEPENDS_EVDEV},${ERDEPENDS_EVDEV}" |
| 33 | PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,${EDEPENDS_WAYLAND}" |
| 34 | PACKAGECONFIG[wayland-compositor] = "--enable-wayland-compositor,--disable-wayland-compositor,wayland" |
| 35 | |
| 36 | # Default configuration, distros might want to override |
| 37 | PACKAGECONFIG ??= "egl \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 38 | ${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)} \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 39 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx x11', '', d)}" |
| 40 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 41 | FILES_${PN}-examples = "${libdir}/clutter/examples" |
| 42 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 43 | do_configure_prepend() { |
| 44 | # see https://bugzilla.gnome.org/show_bug.cgi?id=661128 for this |
| 45 | touch -t 200001010000 ${S}/po/clutter-1.0.pot |
| 46 | } |