Patchwork [4/4] sysprof: conditionalized build of gtk frontend

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

Comments

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

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

Patch

diff --git a/meta/recipes-kernel/sysprof/sysprof_git.bb b/meta/recipes-kernel/sysprof/sysprof_git.bb
index bd34f00..8cacff5 100644
--- a/meta/recipes-kernel/sysprof/sysprof_git.bb
+++ b/meta/recipes-kernel/sysprof/sysprof_git.bb
@@ -2,7 +2,7 @@  DESCRIPTION = "sysprof - System-wide Performance Profiler for Linux"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
 
-DEPENDS = "gtk+ libglade"
+DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', 'gtk+ libglade', '', d)}"
 
 SRCREV = "4692f85f625f4fd969cef4ab5dc47cc4655c87f9"
 PR = "r2"