diff options
Diffstat (limited to 'meta/packages/mutter/mutter.inc')
| -rw-r--r-- | meta/packages/mutter/mutter.inc | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/packages/mutter/mutter.inc b/meta/packages/mutter/mutter.inc new file mode 100644 index 0000000000..860d9906d5 --- /dev/null +++ b/meta/packages/mutter/mutter.inc | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | SECTION = "x11/wm" | ||
| 2 | DESCRIPTION = "Metacity is the boring window manager for the adult in you. Mutter is metacity + clutter." | ||
| 3 | LICENSE = "GPLv2" | ||
| 4 | DEPENDS = "startup-notification gtk+ gconf clutter-1.0 gdk-pixbuf-csource-native intltool glib-2.0-native" | ||
| 5 | # gobject-introspection | ||
| 6 | inherit gnome update-alternatives | ||
| 7 | |||
| 8 | ALTERNATIVE_NAME = "x-window-manager" | ||
| 9 | ALTERNATIVE_LINK = "${bindir}/x-window-manager" | ||
| 10 | ALTERNATIVE_PATH = "${bindir}/mutter" | ||
| 11 | ALTERNATIVE_PRIORITY = "11" | ||
| 12 | |||
| 13 | EXTRA_OECONF += "--disable-verbose \ | ||
| 14 | --disable-xinerama \ | ||
| 15 | --without-introspection \ | ||
| 16 | --with-clutter" | ||
| 17 | |||
| 18 | #RDEPENDS_${PN} = "zenity" | ||
| 19 | |||
| 20 | FILES_${PN} += "${datadir}/themes ${libdir}/mutter/plugins/*.so ${datadir}/gnome/wm-properties/" | ||
| 21 | FILES_${PN}-dbg += "${libdir}/mutter/plugins/.debug/*" | ||
| 22 | |||
| 23 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
| 24 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE}/glib-2.0 -I${STAGING_INCDIR_NATIVE}/glib-2.0/include" | ||
| 25 | export LDFLAGS_FOR_BUILD = "${BUILD_LDFLAGS} -L${STAGING_LIBDIR_NATIVE} -lglib-2.0" | ||
| 26 | |||
| 27 | do_configure_prepend () { | ||
| 28 | echo "EXTRA_DIST=" > ${S}/gnome-doc-utils.make | ||
| 29 | } | ||
| 30 | |||
| 31 | do_stage () { | ||
| 32 | autotools_stage_all | ||
| 33 | } | ||
| 34 | |||
| 35 | pkg_postinst_${PN} () { | ||
| 36 | #!/bin/sh -e | ||
| 37 | if [ "x$D" != "x" ]; then | ||
| 38 | exit 1 | ||
| 39 | fi | ||
| 40 | |||
| 41 | . ${sysconfdir}/init.d/functions | ||
| 42 | |||
| 43 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type list --list-type string --set /apps/mutter/general/clutter_plugins '[default]' | ||
| 44 | |||
| 45 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type bool --set /apps/mutter/general/compositing_manager true | ||
| 46 | } | ||
| 47 | |||
