5dc4829f39
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
23 lines
804 B
Makefile
23 lines
804 B
Makefile
################################################################################
|
|
#
|
|
# lua-msgpack-native
|
|
#
|
|
################################################################################
|
|
|
|
LUA_MSGPACK_NATIVE_VERSION = 41a91b994c70389dc9daa1a15678741d8ec41749
|
|
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/$(LUAINTERPRETER_ABIVER)/msgpack.so
|
|
endef
|
|
|
|
$(eval $(generic-package))
|