Commit 4a09e9b5 authored by Francois Perrad's avatar Francois Perrad Committed by Peter Korsgaard
Browse files

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: default avatarFrancois Perrad <francois.perrad@gadz.org>
[yann.morin.1998@free.fr: switch to package-defined providers,
                          apply Thomas' comments]
Signed-off-by: default avatarYann E. MORIN <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 9c47cd5b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -360,8 +360,9 @@ source "package/haserl/Config.in"
source "package/jamvm/Config.in"
source "package/jimtcl/Config.in"
source "package/lua/Config.in"
source "package/luainterpreter/Config.in"
source "package/luajit/Config.in"
if BR2_PACKAGE_LUA || BR2_PACKAGE_LUAJIT
if BR2_PACKAGE_HAS_LUA_INTERPRETER
menu "Lua libraries/modules"
source "package/cgilua/Config.in"
source "package/copas/Config.in"
+1 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_LBASE64
	bool "lbase64"
	depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
	help
	  A base64 library for Lua

+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ LBASE64_SITE = http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.1
LBASE64_SOURCE = lbase64.tar.gz
LBASE64_LICENSE = Public domain
LBASE64_LICENSE_FILES = README
LBASE64_DEPENDENCIES = lua
LBASE64_DEPENDENCIES = luainterpreter

define LBASE64_BUILD_CMDS
       $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
+1 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_LUA_EV
	bool "lua-ev"
	depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
	select BR2_PACKAGE_LIBEV
	depends on !(BR2_avr32 || BR2_bfin) # libev
	help
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@

LUA_EV_VERSION = 458165bdfe0c6eadc788813925f11a0e6a823845
LUA_EV_SITE = $(call github,brimworks,lua-ev,$(LUA_EV_VERSION))
LUA_EV_DEPENDENCIES = lua libev
LUA_EV_DEPENDENCIES = luainterpreter libev
LUA_EV_LICENSE = MIT
LUA_EV_LICENSE_FILES = README
LUA_EV_CONF_OPT = -DINSTALL_CMOD="/usr/lib/lua"
Loading