summaryrefslogtreecommitdiffstats
path: root/meta-moblin/packages/mutter-moblin/mutter-moblin.inc
blob: a956e4bfc79628acb28e836769d9a5c783fea5a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
DESCRIPTION = "A Moblin specific plugin for the Mutter composite window manager"
SECTION = "x11/wm"
LICENSE = "GPLv2"
DEPENDS = "clutter-1.0 nbtk mutter gnome-menus mojito libjana anerley clutter-mozembed bickley bognor-regis"

SRC_URI = "http://download.moblin.org/sources/mutter-moblin/0.43/mutter-moblin-0.43.8.tar.bz2 \
           file://startup-notify.patch;patch=1 \
           file://88mutter-panelapps.sh \
           file://background-tile.png"

FILES_${PN} += "\
	${sysconfdir}/X11 \
	${libdir}/metacity/plugins/clutter/*.so* \
	${libdir}/mutter/plugins/*.so* \
	${datadir}/mutter-moblin-netbook-plugin \
	${datadir}/dbus-1/services \
	${datadir}/moblin-panel-applications/theme \
	${datadir}/moblin-panel-pasteboard/theme"
FILES_${PN}-dbg += "${libdir}/metacity/plugins/clutter/.debug/*"
FILES_${PN}-dbg += "${libdir}/mutter/plugins/.debug/*"

ASNEEDED = ""

EXTRA_OECONF = "--enable-ahoghill --enable-netpanel --enable-people"

inherit autotools_stage

do_configure_prepend () {
	rm -f ${S}/build/autotools/gtk-doc.m4
	cp ${WORKDIR}/background-tile.png ${S}/data/theme/panel/
}

do_install_append () {
	install -d ${D}${sysconfdir}/X11/Xsession.d/
	install ${WORKDIR}/88mutter-panelapps.sh ${D}${sysconfdir}/X11/Xsession.d/
}


pkg_postinst_${PN} () {
#!/bin/sh -e
if [ "x$D" != "x" ]; then
    exit 1
fi

. ${sysconfdir}/init.d/functions

gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type list --list-type string --set /apps/metacity/general/clutter_plugins '[moblin-netbook]'

nbtk-create-image-cache ${datadir}/mutter-moblin/theme
}