blob: 9ecdfd0a8c9c3e7a3075594e4b0d63e9c58007d1 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Graphics library for creating hardware-accelerated user interfaces"
Brad Bishop1d80a2e2019-11-15 16:35:03 -05002DESCRIPTION = "Clutter is an Open GL based interactive canvas library, \
3designed for creating fast, mainly 2D single window applications such as media \
4box UIs, presentations, kiosk style applications and so on."
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005HOMEPAGE = "http://www.clutter-project.org/"
6LICENSE = "LGPLv2.1+"
7
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05008inherit clutter ptest-gnome distro_features_check upstream-version-is-even gobject-introspection
9# depends on cogl-1.0 which needs opengl
10REQUIRED_DISTRO_FEATURES ?= "opengl"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
12DEPENDS = "pango glib-2.0 json-glib atk udev cogl-1.0"
13PACKAGE_BEFORE_PN += "${PN}-examples"
14AUTOTOOLS_AUXDIR = "${S}/build"
15
16EDEPENDS_X11 = "virtual/libx11 libxi libxfixes"
17EDEPENDS_GLX = "virtual/libgl"
18EDEPENDS_EGL = "virtual/egl"
19EDEPENDS_WAYLAND = "wayland libxkbcommon gdk-pixbuf"
20
21EDEPENDS_EVDEV = "libxkbcommon"
22ERDEPENDS_EVDEV = "xkeyboard-config"
23
24# Disable pretty much everything, override in platform specific set up
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050025EXTRA_OECONF += "--disable-quartz-backend \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050026 --disable-win32-backend \
27 --disable-gdk-backend \
28 --disable-cex100-backend \
29 --disable-tslib-input \
30 "
31
32PACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,${EDEPENDS_X11}"
33PACKAGECONFIG[glx] = ",,${EDEPENDS_X11} ${EDEPENDS_GLX}"
34PACKAGECONFIG[egl] = "--enable-egl-backend,--disable-egl-backend,${EDEPENDS_EGL}"
35PACKAGECONFIG[evdev] = "--enable-evdev-input,--disable-evdev-input,${EDEPENDS_EVDEV},${ERDEPENDS_EVDEV}"
36PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,${EDEPENDS_WAYLAND}"
37PACKAGECONFIG[wayland-compositor] = "--enable-wayland-compositor,--disable-wayland-compositor,wayland"
38
39# Default configuration, distros might want to override
40PACKAGECONFIG ??= "egl \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050041 ${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)} \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050042 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx x11', '', d)}"
43
Patrick Williamsc124f4f2015-09-15 14:41:29 -050044FILES_${PN}-examples = "${libdir}/clutter/examples"
45
Patrick Williamsc124f4f2015-09-15 14:41:29 -050046do_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}