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