William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 1 | SUMMARY = "Graphics library for creating hardware-accelerated user interfaces" |
| 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." |
| 5 | HOMEPAGE = "http://www.clutter-project.org/" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 6 | LICENSE = "LGPL-2.1-or-later" |
William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 7 | |
| 8 | inherit clutter ptest-gnome features_check upstream-version-is-even gobject-introspection |
| 9 | # depends on cogl-1.0 which needs opengl |
| 10 | REQUIRED_DISTRO_FEATURES ?= "opengl" |
| 11 | |
| 12 | DEPENDS = "pango glib-2.0 json-glib atk udev cogl-1.0" |
| 13 | PACKAGE_BEFORE_PN += "${PN}-examples" |
| 14 | AUTOTOOLS_AUXDIR = "${S}/build-aux" |
| 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 |
| 25 | EXTRA_OECONF += "--disable-quartz-backend \ |
| 26 | --disable-win32-backend \ |
| 27 | --disable-cex100-backend \ |
| 28 | --disable-tslib-input \ |
| 29 | " |
| 30 | |
| 31 | PACKAGECONFIG[gdk] = "--enable-gdk-backend,--disable-gdk-backend,gtk+3" |
| 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 |
| 40 | PACKAGECONFIG ??= "egl gdk \ |
| 41 | ${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)} \ |
| 42 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx x11', '', d)}" |
| 43 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 44 | FILES:${PN}-examples = "${libdir}/clutter/examples" |
William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 45 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 46 | do_configure:prepend() { |
William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 47 | # see https://bugzilla.gnome.org/show_bug.cgi?id=661128 for this |
| 48 | touch -t 200001010000 ${S}/po/clutter-1.0.pot |
| 49 | } |