summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/clutter/clutter-1.0.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/clutter/clutter-1.0.inc')
-rw-r--r--meta/recipes-graphics/clutter/clutter-1.0.inc56
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 @@
1DESCRIPTION = "Clutter graphics library"
2HOMEPAGE = "http://www.clutter-project.org/"
3LICENSE = "LGPLv2.1+"
4
5inherit clutter
6
7SRC_URI += "file://enable_tests.patch"
8
9DEPENDS = "gtk-doc-native pango glib-2.0 json-glib atk udev cogl-1.0"
10PACKAGES =+ "${PN}-examples"
11AUTOTOOLS_AUXDIR = "${S}/build"
12
13EDEPENDS_X11 = "virtual/libx11 libxi libxfixes"
14EDEPENDS_GLX = "virtual/libgl"
15EDEPENDS_EGL = "virtual/egl"
16
17EDEPENDS_EVDEV = "libxkbcommon"
18ERDEPENDS_EVDEV = "xkeyboard-config"
19
20# Disable pretty much everything, override in platform specific set up
21EXTRA_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
36PACKAGECONFIG[x11] = "--enable-x11-backend,,${EDEPENDS_X11}"
37PACKAGECONFIG[glx] = "--enable-x11-backend,,${EDEPENDS_X11} ${EDEPENDS_GLX}"
38PACKAGECONFIG[egl] = "--enable-egl-backend,,${EDEPENDS_EGL}"
39PACKAGECONFIG[evdev] = "--enable-evdev-input,,${EDEPENDS_EVDEV},${ERDEPENDS_EVDEV}"
40
41# Default configuration, distros might want to override
42PACKAGECONFIG ??= "glx"
43
44FILES_${PN}-examples = "${bindir}/test-* ${pkgdatadir}/redhand.png"
45
46do_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}