[OE-core] [PATCH] sysprof: Creats x11 PACKAGECONFIG.

Noor, Ahsan noor_ahsan at mentor.com
Tue Sep 30 14:25:04 UTC 2014


From: Noor <noor_ahsan at mentor.com>

* gtk+ and libglade is required to have graphical version of sysprof.
  Created x11 packageconfig and added these two packages in that config
  and removed from DEPENDS.

Signed-off-by: Noor Ahsan <noor_ahsan at mentor.com>
---
 meta/recipes-kernel/sysprof/sysprof_git.bb |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-kernel/sysprof/sysprof_git.bb b/meta/recipes-kernel/sysprof/sysprof_git.bb
index ef1e270..d3fb97a 100644
--- a/meta/recipes-kernel/sysprof/sysprof_git.bb
+++ b/meta/recipes-kernel/sysprof/sysprof_git.bb
@@ -2,8 +2,6 @@ SUMMARY = "System-wide Performance Profiler for Linux"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
 
-DEPENDS = "gtk+ libglade"
-
 SRCREV = "cd44ee6644c3641507fb53b8a2a69137f2971219"
 PV = "1.2.0+git${SRCPV}"
 
@@ -18,3 +16,8 @@ SRC_URI_append_mips64 = " file://rmb-mips.patch"
 S = "${WORKDIR}/git"
 
 inherit autotools pkgconfig
+
+PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
+
+PACKAGECONFIG[x11] = ",,gtk+ libglade"
+
-- 
1.7.9.5




More information about the Openembedded-core mailing list