4a09e9b54f
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>
22 lines
775 B
Makefile
22 lines
775 B
Makefile
################################################################################
|
|
#
|
|
# lua-msgpack-native
|
|
#
|
|
################################################################################
|
|
|
|
LUA_MSGPACK_NATIVE_VERSION = 41cce91ab6b54e4426c6d626a0ac41a02ec2096d
|
|
LUA_MSGPACK_NATIVE_SITE = $(call github,kengonakajima,lua-msgpack-native,$(LUA_MSGPACK_NATIVE_VERSION))
|
|
LUA_MSGPACK_NATIVE_DEPENDENCIES = luainterpreter
|
|
LUA_MSGPACK_NATIVE_LICENSE = Apache-2.0
|
|
LUA_MSGPACK_NATIVE_LICENSE_FILES = LICENSE.txt
|
|
|
|
define LUA_MSGPACK_NATIVE_BUILD_CMDS
|
|
$(TARGET_CC) $(TARGET_CFLAGS) -fPIC -shared -o $(@D)/msgpack.so $(@D)/mp.c
|
|
endef
|
|
|
|
define LUA_MSGPACK_NATIVE_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -m 755 -D $(@D)/msgpack.so $(TARGET_DIR)/usr/lib/lua/msgpack.so
|
|
endef
|
|
|
|
$(eval $(generic-package))
|