From 69147de56c6ebfa9763cb74f6052efc08a2d32e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Mon, 14 Sep 2015 00:17:35 +0200 Subject: [PATCH] qterminal: build only in x11 environments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- .../recipes-qterminal/packagegroups/qterminal-world.bb | 2 +- recipes-misc/recipes-qterminal/qterminal/qterminal_git.bb | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes-misc/recipes-qterminal/packagegroups/qterminal-world.bb b/recipes-misc/recipes-qterminal/packagegroups/qterminal-world.bb index 6bab15b7..a1c3de67 100644 --- a/recipes-misc/recipes-qterminal/packagegroups/qterminal-world.bb +++ b/recipes-misc/recipes-qterminal/packagegroups/qterminal-world.bb @@ -6,5 +6,5 @@ inherit packagegroup RDEPENDS_${PN} = " \ qtermwidget \ - qterminal \ + ${@bb.utils.contains("DISTRO_FEATURES", "x11", "qterminal", "",d)} \ " diff --git a/recipes-misc/recipes-qterminal/qterminal/qterminal_git.bb b/recipes-misc/recipes-qterminal/qterminal/qterminal_git.bb index 46dea0fb..62e921ba 100644 --- a/recipes-misc/recipes-qterminal/qterminal/qterminal_git.bb +++ b/recipes-misc/recipes-qterminal/qterminal/qterminal_git.bb @@ -2,7 +2,9 @@ SUMMARY = "Lightweight terminal emulator written in Qt" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" -inherit cmake_qt5 cmake-extra-sanity +inherit cmake_qt5 cmake-extra-sanity distro_features_check + +REQUIRED_DISTRO_FEATURES = "x11" DEPENDS = "qtbase qttools-native qtermwidget"