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>
This commit is contained in:
committed by
Peter Korsgaard
parent
ba296ab1ea
commit
751d85a7f8
@@ -1,8 +1,12 @@
|
||||
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
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user