aboutsummaryrefslogtreecommitdiff
path: root/package/luaposix
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2014-01-11 16:42:03 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-01-13 23:15:33 +0100
commit4a09e9b54f6bbfec304ed84bfe199b245fcff35d (patch)
tree66b73b5784bd5f8071cdf4e76929cc4226d1dc8c /package/luaposix
parent9c47cd5b6471e62874fa88e58c1bf9b44742a9c3 (diff)
downloadbuildroot-4a09e9b54f6bbfec304ed84bfe199b245fcff35d.tar.gz
buildroot-4a09e9b54f6bbfec304ed84bfe199b245fcff35d.tar.bz2
luainterpreter: create virtual package
This patch introduces the luainterpreter virtual package, which is provided either by 'lua' or by 'lua-jit'. Packages that require a Lua interpreter can then depend on BR2_PACKAGE_LUAINTERPRETER (in their Config.in) and luainterpreter (in their .mk). Signed-off-by: Francois Perrad <francois.perrad@gadz.org> [yann.morin.1998@free.fr: switch to package-defined providers, apply Thomas' comments] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/luaposix')
-rw-r--r--package/luaposix/Config.in1
-rw-r--r--package/luaposix/luaposix.mk2
2 files changed, 2 insertions, 1 deletions
diff --git a/package/luaposix/Config.in b/package/luaposix/Config.in
index 598bf111af..cad6fe976a 100644
--- a/package/luaposix/Config.in
+++ b/package/luaposix/Config.in
@@ -1,5 +1,6 @@
config BR2_PACKAGE_LUAPOSIX
bool "luaposix"
+ depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
select BR2_PACKAGE_LUABITOP if BR2_PACKAGE_LUA
# LuaBitOp is already included in LuaJIT
help
diff --git a/package/luaposix/luaposix.mk b/package/luaposix/luaposix.mk
index cbcdf32590..b398c8c98e 100644
--- a/package/luaposix/luaposix.mk
+++ b/package/luaposix/luaposix.mk
@@ -9,7 +9,7 @@ LUAPOSIX_SITE = https://github.com/luaposix/luaposix/archive
LUAPOSIX_SOURCE = release-v$(LUAPOSIX_VERSION).tar.gz
LUAPOSIX_LICENSE = MIT
LUAPOSIX_LICENSE_FILES = COPYING
-LUAPOSIX_DEPENDENCIES = lua host-lua
+LUAPOSIX_DEPENDENCIES = luainterpreter host-lua
LUAPOSIX_CONF_OPT = --libdir="/usr/lib/lua" --datarootdir="/usr/share/lua"
ifeq ($(BR2_PACKAGE_NCURSES),y)