diff options
Diffstat (limited to 'meta/recipes-graphics/clutter/clutter-1.0.inc')
-rw-r--r-- | meta/recipes-graphics/clutter/clutter-1.0.inc | 56 |
1 files changed, 56 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..6710776213 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-1.0.inc | |||
@@ -0,0 +1,56 @@ | |||
1 | DESCRIPTION = "Clutter graphics library" | ||
2 | HOMEPAGE = "http://www.clutter-project.org/" | ||
3 | LICENSE = "LGPLv2.1+" | ||
4 | |||
5 | inherit clutter | ||
6 | |||
7 | SRC_URI += "file://enable_tests.patch" | ||
8 | |||
9 | DEPENDS = "gtk-doc-native pango glib-2.0 json-glib atk udev cogl-1.0" | ||
10 | PACKAGES =+ "${PN}-examples" | ||
11 | AUTOTOOLS_AUXDIR = "${S}/build" | ||
12 | |||
13 | EDEPENDS_X11 = "virtual/libx11 libxi libxfixes" | ||
14 | EDEPENDS_GLX = "virtual/libgl" | ||
15 | EDEPENDS_EGL = "virtual/egl" | ||
16 | |||
17 | EDEPENDS_EVDEV = "libxkbcommon" | ||
18 | ERDEPENDS_EVDEV = "xkeyboard-config" | ||
19 | |||
20 | # Disable pretty much everything, override in platform specific set up | ||
21 | EXTRA_OECONF += "--disable-gtk-doc \ | ||
22 | ${@get_fpu_setting(bb, d)} \ | ||
23 | --disable-introspection \ | ||
24 | --disable-egl-backend \ | ||
25 | --disable-quartz-backend \ | ||
26 | --disable-win32-backend \ | ||
27 | --disable-x11-backend \ | ||
28 | --disable-gdk-backend \ | ||
29 | --disable-wayland-backend \ | ||
30 | --disable-wayland-compositor \ | ||
31 | --disable-cex100-backend \ | ||
32 | --disable-tslib-input \ | ||
33 | --disable-evdev-input \ | ||
34 | " | ||
35 | |||
36 | PACKAGECONFIG[x11] = "--enable-x11-backend,,${EDEPENDS_X11}" | ||
37 | PACKAGECONFIG[glx] = "--enable-x11-backend,,${EDEPENDS_X11} ${EDEPENDS_GLX}" | ||
38 | PACKAGECONFIG[egl] = "--enable-egl-backend,,${EDEPENDS_EGL}" | ||
39 | PACKAGECONFIG[evdev] = "--enable-evdev-input,,${EDEPENDS_EVDEV},${ERDEPENDS_EVDEV}" | ||
40 | |||
41 | # Default configuration, distros might want to override | ||
42 | PACKAGECONFIG ??= "glx" | ||
43 | |||
44 | FILES_${PN}-examples = "${bindir}/test-* ${pkgdatadir}/redhand.png" | ||
45 | |||
46 | do_configure_prepend() { | ||
47 | # Fix up some weirdness in the docs | ||
48 | sed -i s:doc/reference/Makefile::g ${S}/configure.ac | ||
49 | sed -i s:doc::g ${S}/Makefile.am | ||
50 | |||
51 | # see https://bugzilla.gnome.org/show_bug.cgi?id=661128 for this | ||
52 | touch -t 200001010000 po/clutter-1.0.pot | ||
53 | |||
54 | # Disable DOLT | ||
55 | sed -i -e 's/^DOLT//' ${S}/configure.ac | ||
56 | } | ||