aboutsummaryrefslogtreecommitdiff
path: root/package/luaposix
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2014-01-17 18:47:36 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-01-21 23:27:50 +0100
commit751d85a7f835ab055dd16087991e08a22a14c364 (patch)
treeb38d09aab7091317e5d0154dcafde0d4164ef1ba /package/luaposix
parentba296ab1eaeab5ab68c596f7723932788749c9c6 (diff)
downloadbuildroot-751d85a7f835ab055dd16087991e08a22a14c364.tar.gz
buildroot-751d85a7f835ab055dd16087991e08a22a14c364.tar.bz2
lua-modules: choice between Lua 5.1.x & Lua 5.2.x
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/luaposix')
-rw-r--r--package/luaposix/Config.in2
-rw-r--r--package/luaposix/luaposix.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/package/luaposix/Config.in b/package/luaposix/Config.in
index cad6fe976a..a95c8259ff 100644
--- a/package/luaposix/Config.in
+++ b/package/luaposix/Config.in
@@ -1,7 +1,7 @@
config BR2_PACKAGE_LUAPOSIX
bool "luaposix"
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
- select BR2_PACKAGE_LUABITOP if BR2_PACKAGE_LUA
+ select BR2_PACKAGE_LUABITOP if BR2_PACKAGE_LUA_5_1
# LuaBitOp is already included in LuaJIT
help
luaposix is a POSIX binding, including curses, for Lua 5.1
diff --git a/package/luaposix/luaposix.mk b/package/luaposix/luaposix.mk
index b018995d9e..77f5e6290e 100644
--- a/package/luaposix/luaposix.mk
+++ b/package/luaposix/luaposix.mk
@@ -10,7 +10,7 @@ LUAPOSIX_SOURCE = release-v$(LUAPOSIX_VERSION).tar.gz
LUAPOSIX_LICENSE = MIT
LUAPOSIX_LICENSE_FILES = COPYING
LUAPOSIX_DEPENDENCIES = luainterpreter host-lua
-LUAPOSIX_CONF_OPT = --libdir="/usr/lib/lua/5.1" --datarootdir="/usr/share/lua/5.1"
+LUAPOSIX_CONF_OPT = --libdir="/usr/lib/lua/$(LUAINTERPRETER_ABIVER)" --datarootdir="/usr/share/lua/$(LUAINTERPRETER_ABIVER)"
ifeq ($(BR2_PACKAGE_NCURSES),y)
LUAPOSIX_DEPENDENCIES += ncurses