blob: da21cee8b58a1d9816cc51c1de2201ade6bacfc8 [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
5inherit clutter ptest-gnome
6
7DEPENDS = "pango glib-2.0 json-glib atk udev cogl-1.0"
8PACKAGE_BEFORE_PN += "${PN}-examples"
9AUTOTOOLS_AUXDIR = "${S}/build"
10
11EDEPENDS_X11 = "virtual/libx11 libxi libxfixes"
12EDEPENDS_GLX = "virtual/libgl"
13EDEPENDS_EGL = "virtual/egl"
14EDEPENDS_WAYLAND = "wayland libxkbcommon gdk-pixbuf"
15
16EDEPENDS_EVDEV = "libxkbcommon"
17ERDEPENDS_EVDEV = "xkeyboard-config"
18
19# Disable pretty much everything, override in platform specific set up
20EXTRA_OECONF += "--disable-introspection \
21 --disable-quartz-backend \
22 --disable-win32-backend \
23 --disable-gdk-backend \
24 --disable-cex100-backend \
25 --disable-tslib-input \
26 "
27
28PACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,${EDEPENDS_X11}"
29PACKAGECONFIG[glx] = ",,${EDEPENDS_X11} ${EDEPENDS_GLX}"
30PACKAGECONFIG[egl] = "--enable-egl-backend,--disable-egl-backend,${EDEPENDS_EGL}"
31PACKAGECONFIG[evdev] = "--enable-evdev-input,--disable-evdev-input,${EDEPENDS_EVDEV},${ERDEPENDS_EVDEV}"
32PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,${EDEPENDS_WAYLAND}"
33PACKAGECONFIG[wayland-compositor] = "--enable-wayland-compositor,--disable-wayland-compositor,wayland"
34
35# Default configuration, distros might want to override
36PACKAGECONFIG ??= "egl \
37 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
38 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx x11', '', d)}"
39
40FILES_${PN}-dbg += "${libdir}/clutter/examples/.debug"
41FILES_${PN}-examples = "${libdir}/clutter/examples"
42
43FILES_${PN}-dbg += "${libexecdir}/installed-tests/.debug"
44
45do_configure_prepend() {
46 # see https://bugzilla.gnome.org/show_bug.cgi?id=661128 for this
47 touch -t 200001010000 ${S}/po/clutter-1.0.pot
48}