luaposix: add ncurses dependency
authorFrancois Perrad <fperrad@gmail.com>
Thu, 19 Sep 2013 06:31:39 +0000 (08:31 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 19 Sep 2013 19:38:21 +0000 (21:38 +0200)
luaposix includes a curses binding which is optional and auto-detected by autotools.

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/luaposix/luaposix.mk

index ff99127d8c7a61f2a1b1480604e5720f469c95fd..cbcdf32590a897e8500e88a3858d7407de7ae2ef 100644 (file)
@@ -12,4 +12,8 @@ LUAPOSIX_LICENSE_FILES = COPYING
 LUAPOSIX_DEPENDENCIES = lua host-lua
 LUAPOSIX_CONF_OPT = --libdir="/usr/lib/lua" --datarootdir="/usr/share/lua"
 
+ifeq ($(BR2_PACKAGE_NCURSES),y)
+    LUAPOSIX_DEPENDENCIES += ncurses
+endif
+
 $(eval $(autotools-package))