Commit 751d85a7 authored by Francois Perrad's avatar Francois Perrad Committed by Peter Korsgaard
Browse files

lua-modules: choice between Lua 5.1.x & Lua 5.2.x

parent ba296ab1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_LBASE64
	bool "lbase64"
	depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
	depends on !BR2_PACKAGE_LUA_5_2
	help
	  A base64 library for Lua

	  http://luaforge.net/projects/lbase64/

comment "lbase64 needs a Lua 5.1 interpreter"
	depends on BR2_PACKAGE_LUA_5_2
+1 −1
Original line number Diff line number Diff line
@@ -9,6 +9,6 @@ LUA_EV_SITE = $(call github,brimworks,lua-ev,$(LUA_EV_VERSION))
LUA_EV_DEPENDENCIES = luainterpreter libev
LUA_EV_LICENSE = MIT
LUA_EV_LICENSE_FILES = README
LUA_EV_CONF_OPT = -DINSTALL_CMOD="/usr/lib/lua/5.1"
LUA_EV_CONF_OPT = -DINSTALL_CMOD="/usr/lib/lua/$(LUAINTERPRETER_ABIVER)"

$(eval $(cmake-package))
+4 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_LUA_MSGPACK_NATIVE
	bool "lua-msgpack-native"
	depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
	depends on !BR2_PACKAGE_LUA_5_2
	help
	  This is a native, C language implementation of msgpack
	  (http://msgpack.org) library/protocol for Lua language

	  https://github.com/kengonakajima/lua-msgpack-native

comment "lua-msgpack-native needs a Lua 5.1 interpreter"
	depends on BR2_PACKAGE_LUA_5_2
+2 −1
Original line number Diff line number Diff line
@@ -15,7 +15,8 @@ define LUA_MSGPACK_NATIVE_BUILD_CMDS
endef

define LUA_MSGPACK_NATIVE_INSTALL_TARGET_CMDS
	$(INSTALL) -m 755 -D $(@D)/msgpack.so $(TARGET_DIR)/usr/lib/lua/5.1/msgpack.so
	$(INSTALL) -m 755 -D $(@D)/msgpack.so \
		$(TARGET_DIR)/usr/lib/lua/$(LUAINTERPRETER_ABIVER)/msgpack.so
endef

$(eval $(generic-package))
+4 −0
Original line number Diff line number Diff line
@@ -2,7 +2,11 @@ config BR2_PACKAGE_LUAEXPAT
	bool "luaexpat"
	select BR2_PACKAGE_EXPAT
	depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
	depends on !BR2_PACKAGE_LUA_5_2
	help
	  LuaExpat is a SAX XML parser based on the Expat library.

	  http://matthewwild.co.uk/projects/luaexpat/

comment "luaexpat needs a Lua 5.1 interpreter"
	depends on BR2_PACKAGE_LUA_5_2
Loading