mb-common: use u-a to make the link to x-wm, do not depend on mb-wm to do it
authorKoen Kooi <koen@openembedded.org>
Thu, 15 Nov 2007 14:08:49 +0000 (14:08 +0000)
committerKoen Kooi <koen@openembedded.org>
Thu, 15 Nov 2007 14:08:49 +0000 (14:08 +0000)
packages/matchbox-common/matchbox-common_0.9.1.bb

index fa6e989..ca68003 100644 (file)
@@ -2,13 +2,13 @@ DESCRIPTION = "Matchbox window manager common files"
 SECTION = "x11/wm"
 LICENSE = "GPL"
 DEPENDS = "libmatchbox"
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "http://projects.o-hand.com/matchbox/sources/${PN}/0.9/${PN}-${PV}.tar.gz \
            file://no-utilities-category.patch;patch=1 \
            file://add-media-category.patch;patch=1"
 
-inherit autotools pkgconfig
+inherit autotools pkgconfig update-alternatives
 
 EXTRA_OECONF = "--enable-pda-folders"
 
@@ -17,4 +17,10 @@ FILES_${PN} = "\
   ${datadir}/matchbox/vfolders \
   ${datadir}/pixmaps"
 
+ALTERNATIVE_NAME = "x-window-manager"
+ALTERNATIVE_LINK = "${bindir}/x-window-manager"
+ALTERNATIVE_PATH = "${bindir}/matchbox-window-manager"
+ALTERNATIVE_PRIORITY = "11"
+
+
 PACKAGE_ARCH = "all"