Patchwork [3/4] latencytop: honor x11 DISTRO_FEATURE

login
register
mail settings
Submitter Enrico Scholz
Date Jan. 12, 2012, 4:38 p.m.
Message ID <1326386296-1526-4-git-send-email-enrico.scholz@sigma-chemnitz.de>
Download mbox | patch
Permalink /patch/19193/
State New
Headers show

Comments

Enrico Scholz - Jan. 12, 2012, 4:38 p.m.
'latencytop' can be used on headless system and it is desirable to avoid
building of the gtk+ stack.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
---
 meta/recipes-kernel/latencytop/latencytop_0.5.bb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-kernel/latencytop/latencytop_0.5.bb b/meta/recipes-kernel/latencytop/latencytop_0.5.bb
index 247ec16..1002392 100644
--- a/meta/recipes-kernel/latencytop/latencytop_0.5.bb
+++ b/meta/recipes-kernel/latencytop/latencytop_0.5.bb
@@ -5,7 +5,8 @@  BUGTRACKER = "n/a"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://latencytop.c;endline=23;md5=ee9ea9b1415356e5734adad4a87dc7fa"
 
-DEPENDS = "virtual/libintl ncurses glib-2.0 gtk+"
+DEPENDS = "virtual/libintl ncurses glib-2.0"
+DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', 'gtk+', '', d)}"
 
 PR = "r1"
 
@@ -17,6 +18,9 @@  SRC_URI[sha256sum] = "9e7f72fbea7bd918e71212a1eabaad8488d2c602205d2e3c95d62cd57e
 
 CFLAGS += "${LDFLAGS}"
 
+EXTRA_OEMAKE += "${@base_contains('DISTRO_FEATURES', 'x11', \
+  'HAS_GTK_GUI=1', 'HAS_GTK_GUI=', d)}"
+
 do_install() {
     oe_runmake install DESTDIR=${D}
 }