From patchwork Thu Mar 27 23:06:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 334499 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 58A9814009C for ; Fri, 28 Mar 2014 10:06:53 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 87E6C8B1B6; Thu, 27 Mar 2014 23:06:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RfCUwNj8aoKv; Thu, 27 Mar 2014 23:06:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0C5B78B1EF; Thu, 27 Mar 2014 23:06:52 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id AEF661C24B5 for ; Thu, 27 Mar 2014 23:06:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A9ECF8B687 for ; Thu, 27 Mar 2014 23:06:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PbgLL04KZxJC for ; Thu, 27 Mar 2014 23:06:49 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by whitealder.osuosl.org (Postfix) with ESMTP id 3BD088B681 for ; Thu, 27 Mar 2014 23:06:47 +0000 (UTC) Received: from localhost.localdomain (unknown [81.57.22.125]) by smtp3-g21.free.fr (Postfix) with ESMTP id 26B6DA6219; Fri, 28 Mar 2014 00:06:42 +0100 (CET) From: Romain Naour To: buildroot@buildroot.org Date: Fri, 28 Mar 2014 00:06:33 +0100 Message-Id: <1395961593-9826-2-git-send-email-romain.naour@openwide.fr> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1395961593-9826-1-git-send-email-romain.naour@openwide.fr> References: <1395961593-9826-1-git-send-email-romain.naour@openwide.fr> Subject: [Buildroot] [PATCH 2/2] slang: add ncurses optional dependency X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Ncurses check need to be disabled if ncurses package is not selected. If we don't do that, host's ncurses5-config may be used by configure script. Signed-off-by: Romain Naour --- Note: others optional dependencies may be missing (pcre oniguruma png z iconv) package/slang/slang.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/slang/slang.mk b/package/slang/slang.mk index 38f0b6f..2006c71 100644 --- a/package/slang/slang.mk +++ b/package/slang/slang.mk @@ -13,6 +13,12 @@ SLANG_LICENSE_FILES = COPYING SLANG_INSTALL_STAGING = YES SLANG_MAKE = $(MAKE1) +ifeq ($(BR2_PACKAGE_NCURSES),y) + SLANG_DEPENDENCIES = ncurses +else + SLANG_CONF_OPT = ac_cv_path_nc5config=no +endif + # The installation location of the slang library # does not take into account the DESTDIR directory. # So SLANG_INST_LIB is initialized with -L/usr/lib/