summaryrefslogtreecommitdiffstats
path: root/package/slang
diff options
context:
space:
mode:
authorRomain Naour <romain.naour@openwide.fr>2014-03-28 00:06:33 +0100
committerPeter Korsgaard <peter@korsgaard.com>2014-03-28 09:54:45 +0100
commit3a7aee7742fbe802f26c9ec341580be16e4d1c25 (patch)
treeef396f31127d14331202f7ef637829f1ab4dfb83 /package/slang
parent32c0fbbcdec5e4fdf853cb566a83680a4d393b90 (diff)
downloadbuildroot-3a7aee7742fbe802f26c9ec341580be16e4d1c25.tar.gz
buildroot-3a7aee7742fbe802f26c9ec341580be16e4d1c25.zip
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 <romain.naour@openwide.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/slang')
-rw-r--r--package/slang/slang.mk6
1 files changed, 6 insertions, 0 deletions
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/
OpenPOWER on IntegriCloud