Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Graphics library for creating hardware-accelerated user interfaces" |
Brad Bishop | 1d80a2e | 2019-11-15 16:35:03 -0500 | [diff] [blame] | 2 | DESCRIPTION = "Clutter is an Open GL based interactive canvas library, \ |
| 3 | designed for creating fast, mainly 2D single window applications such as media \ |
| 4 | box UIs, presentations, kiosk style applications and so on." |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | HOMEPAGE = "http://www.clutter-project.org/" |
| 6 | LICENSE = "LGPLv2.1+" |
| 7 | |
Brad Bishop | 6dbb316 | 2019-11-25 09:41:34 -0500 | [diff] [blame] | 8 | inherit clutter ptest-gnome features_check upstream-version-is-even gobject-introspection |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 9 | # depends on cogl-1.0 which needs opengl |
| 10 | REQUIRED_DISTRO_FEATURES ?= "opengl" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | |
| 12 | DEPENDS = "pango glib-2.0 json-glib atk udev cogl-1.0" |
| 13 | PACKAGE_BEFORE_PN += "${PN}-examples" |
Andrew Geissler | 4b740dc | 2020-05-05 08:54:39 -0500 | [diff] [blame] | 14 | AUTOTOOLS_AUXDIR = "${S}/build-aux" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | |
| 16 | EDEPENDS_X11 = "virtual/libx11 libxi libxfixes" |
| 17 | EDEPENDS_GLX = "virtual/libgl" |
| 18 | EDEPENDS_EGL = "virtual/egl" |
| 19 | EDEPENDS_WAYLAND = "wayland libxkbcommon gdk-pixbuf" |
| 20 | |
| 21 | EDEPENDS_EVDEV = "libxkbcommon" |
| 22 | ERDEPENDS_EVDEV = "xkeyboard-config" |
| 23 | |
| 24 | # Disable pretty much everything, override in platform specific set up |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 25 | EXTRA_OECONF += "--disable-quartz-backend \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 26 | --disable-win32-backend \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | --disable-cex100-backend \ |
| 28 | --disable-tslib-input \ |
| 29 | " |
| 30 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 31 | PACKAGECONFIG[gdk] = "--enable-gdk-backend,--disable-gdk-backend,gtk+3" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 32 | PACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,${EDEPENDS_X11}" |
| 33 | PACKAGECONFIG[glx] = ",,${EDEPENDS_X11} ${EDEPENDS_GLX}" |
| 34 | PACKAGECONFIG[egl] = "--enable-egl-backend,--disable-egl-backend,${EDEPENDS_EGL}" |
| 35 | PACKAGECONFIG[evdev] = "--enable-evdev-input,--disable-evdev-input,${EDEPENDS_EVDEV},${ERDEPENDS_EVDEV}" |
| 36 | PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,${EDEPENDS_WAYLAND}" |
| 37 | PACKAGECONFIG[wayland-compositor] = "--enable-wayland-compositor,--disable-wayland-compositor,wayland" |
| 38 | |
| 39 | # Default configuration, distros might want to override |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 40 | PACKAGECONFIG ??= "egl gdk \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 41 | ${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)} \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 42 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx x11', '', d)}" |
| 43 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 44 | FILES_${PN}-examples = "${libdir}/clutter/examples" |
| 45 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 46 | do_configure_prepend() { |
| 47 | # see https://bugzilla.gnome.org/show_bug.cgi?id=661128 for this |
| 48 | touch -t 200001010000 ${S}/po/clutter-1.0.pot |
| 49 | } |