matchbox-panel: Test GUI_MACHINE_CLASS using base_conditional(), instead of
authorPaul Sokolovsky <pmiscml@gmail.com>
Sun, 7 Jan 2007 15:01:43 +0000 (15:01 +0000)
committerPaul Sokolovsky <pmiscml@gmail.com>
Sun, 7 Jan 2007 15:01:43 +0000 (15:01 +0000)
double indirection trick, should be more robust and fix issues seen.

packages/matchbox-panel/matchbox-panel.inc
packages/matchbox-panel/matchbox-panel_0.9.3.bb

index b2148a9..d81d38b 100644 (file)
@@ -3,17 +3,14 @@ LICENSE = "GPL"
 DEPENDS = "libmatchbox virtual/libx11 libxext libxpm apmd startup-notification virtual/kernel wireless-tools"
 SECTION = "x11/wm"
 
-PR = "r2"
+PR = "r3"
 
 inherit autotools pkgconfig gettext
 
 CFLAGS += "-D_GNU_SOURCE"
 
-CONF_bigscreen = ""
-CONF_smallscreen = " --enable-small-icons "
-
 EXTRA_OECONF = " --enable-startup-notification --enable-dnotify "
-EXTRA_OECONF_append = ${CONF_${GUI_MACHINE_CLASS}}
+EXTRA_OECONF_append = '${@base_conditional("GUI_MACHINE_CLASS", "bigscreen", "", " --enable-small-icons ", d)}'
 PACKAGE_ARCH = "${MACHINE}"
 
 FILES_${PN} = "${bindir}/* \
index 2add352..bed0432 100644 (file)
@@ -1,4 +1,4 @@
 require matchbox-panel.inc
-PR="r1"
+PR="r2"
 SRC_URI = "http://projects.o-hand.com/matchbox/sources/${PN}/0.9/${PN}-${PV}.tar.gz \
           file://mb-applet-battery-repaint-093.patch;patch=1"