Add dependency from util-linux on ncurses
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 10 Aug 2010 17:15:26 +0000 (19:15 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 10 Aug 2010 17:22:09 +0000 (19:22 +0200)
util-linux can build without ncurses, but when ncurses is available,
additional features can be built (such as the more
command). Therefore, in util-linux.mk, when ncurses is available, mark
it as a dependency.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/util-linux/util-linux.mk

index f330447fb8b3ebee7406e68224ee81d8f41a5c33..445b4d1c795edcdaca8a06dc1d1df3fd19d24336 100644 (file)
@@ -23,6 +23,10 @@ UTIL-LINUX_DEPENDENCIES += gettext libintl
 UTIL-LINUX_MAKE_OPT = LIBS=-lintl
 endif
 
+ifeq ($(BR2_PACKAGE_NCURSES),y)
+UTIL-LINUX_DEPENDENCIES += ncurses
+endif
+
 $(DL_DIR)/$(UTIL-LINUX_SOURCE):
        $(call DOWNLOAD,$(UTIL-LINUX_SITE),$(UTIL-LINUX_SOURCE))