blob: 6dbbf4d803558cf11d3ea9dac04a7e71a9ee5d49 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Graphics library for creating hardware-accelerated user interfaces"
2HOMEPAGE = "http://www.clutter-project.org/"
3LICENSE = "LGPLv2.1+"
4
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05005inherit clutter ptest-gnome distro_features_check upstream-version-is-even gobject-introspection
6# depends on cogl-1.0 which needs opengl
7REQUIRED_DISTRO_FEATURES ?= "opengl"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008
9DEPENDS = "pango glib-2.0 json-glib atk udev cogl-1.0"
10PACKAGE_BEFORE_PN += "${PN}-examples"
11AUTOTOOLS_AUXDIR = "${S}/build"
12
13EDEPENDS_X11 = "virtual/libx11 libxi libxfixes"
14EDEPENDS_GLX = "virtual/libgl"
15EDEPENDS_EGL = "virtual/egl"
16EDEPENDS_WAYLAND = "wayland libxkbcommon gdk-pixbuf"
17
18EDEPENDS_EVDEV = "libxkbcommon"
19ERDEPENDS_EVDEV = "xkeyboard-config"
20
21# Disable pretty much everything, override in platform specific set up
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050022EXTRA_OECONF += "--disable-quartz-backend \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023 --disable-win32-backend \
24 --disable-gdk-backend \
25 --disable-cex100-backend \
26 --disable-tslib-input \
27 "
28
29PACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,${EDEPENDS_X11}"
30PACKAGECONFIG[glx] = ",,${EDEPENDS_X11} ${EDEPENDS_GLX}"
31PACKAGECONFIG[egl] = "--enable-egl-backend,--disable-egl-backend,${EDEPENDS_EGL}"
32PACKAGECONFIG[evdev] = "--enable-evdev-input,--disable-evdev-input,${EDEPENDS_EVDEV},${ERDEPENDS_EVDEV}"
33PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,${EDEPENDS_WAYLAND}"
34PACKAGECONFIG[wayland-compositor] = "--enable-wayland-compositor,--disable-wayland-compositor,wayland"
35
36# Default configuration, distros might want to override
37PACKAGECONFIG ??= "egl \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050038 ${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)} \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050039 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx x11', '', d)}"
40
Patrick Williamsc124f4f2015-09-15 14:41:29 -050041FILES_${PN}-examples = "${libdir}/clutter/examples"
42
Patrick Williamsc124f4f2015-09-15 14:41:29 -050043do_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}