diff options
Diffstat (limited to 'meta/recipes-graphics/clutter/clutter-1.0.inc')
-rw-r--r-- | meta/recipes-graphics/clutter/clutter-1.0.inc | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-graphics/clutter/clutter-1.0.inc b/meta/recipes-graphics/clutter/clutter-1.0.inc new file mode 100644 index 0000000000..77035d746f --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-1.0.inc | |||
@@ -0,0 +1,45 @@ | |||
1 | SUMMARY = "Graphics library for creating hardware-accelerated user interfaces" | ||
2 | HOMEPAGE = "http://www.clutter-project.org/" | ||
3 | LICENSE = "LGPLv2.1+" | ||
4 | |||
5 | inherit clutter | ||
6 | |||
7 | DEPENDS = "pango glib-2.0 json-glib atk udev cogl-1.0" | ||
8 | PACKAGE_BEFORE_PN += "${PN}-examples" | ||
9 | AUTOTOOLS_AUXDIR = "${S}/build" | ||
10 | |||
11 | EDEPENDS_X11 = "virtual/libx11 libxi libxfixes" | ||
12 | EDEPENDS_GLX = "virtual/libgl" | ||
13 | EDEPENDS_EGL = "virtual/egl" | ||
14 | EDEPENDS_WAYLAND = "wayland libxkbcommon gdk-pixbuf" | ||
15 | |||
16 | EDEPENDS_EVDEV = "libxkbcommon" | ||
17 | ERDEPENDS_EVDEV = "xkeyboard-config" | ||
18 | |||
19 | # Disable pretty much everything, override in platform specific set up | ||
20 | EXTRA_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 | |||
28 | PACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,${EDEPENDS_X11}" | ||
29 | PACKAGECONFIG[glx] = ",,${EDEPENDS_X11} ${EDEPENDS_GLX}" | ||
30 | PACKAGECONFIG[egl] = "--enable-egl-backend,--disable-egl-backend,${EDEPENDS_EGL}" | ||
31 | PACKAGECONFIG[evdev] = "--enable-evdev-input,--disable-evdev-input,${EDEPENDS_EVDEV},${ERDEPENDS_EVDEV}" | ||
32 | PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,${EDEPENDS_WAYLAND}" | ||
33 | PACKAGECONFIG[wayland-compositor] = "--enable-wayland-compositor,--disable-wayland-compositor,wayland" | ||
34 | |||
35 | # Default configuration, distros might want to override | ||
36 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ | ||
37 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx x11', '', d)}" | ||
38 | |||
39 | FILES_${PN}-dbg += "${libdir}/clutter/examples/.debug" | ||
40 | FILES_${PN}-examples = "${libdir}/clutter/examples" | ||
41 | |||
42 | do_configure_prepend() { | ||
43 | # see https://bugzilla.gnome.org/show_bug.cgi?id=661128 for this | ||
44 | touch -t 200001010000 ${S}/po/clutter-1.0.pot | ||
45 | } | ||