From 3a7aee7742fbe802f26c9ec341580be16e4d1c25 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Fri, 28 Mar 2014 00:06:33 +0100 Subject: [PATCH] slang: add ncurses optional dependency 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 Signed-off-by: Peter Korsgaard --- package/slang/slang.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/slang/slang.mk b/package/slang/slang.mk index c6f0383833..d943de3f50 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/ -- 2.30.2