'latencytop' can be used on headless system and it is desirable to avoid
building of the gtk+ stack.

Signed-off-by: Enrico Scholz <[email protected]>
---
 meta/recipes-kernel/latencytop/latencytop_0.5.bb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

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}
 }
-- 
1.7.7.5


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to