2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-09-03 22:58:37 +02:00
|
|
|
#
|
|
|
|
# lua-msgpack-native
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2013-06-07 15:46:10 +02:00
|
|
|
LUA_MSGPACK_NATIVE_VERSION = 41cce91
|
2013-06-06 08:47:19 +02:00
|
|
|
LUA_MSGPACK_NATIVE_SITE = http://github.com/kengonakajima/lua-msgpack-native/tarball/$(LUA_MSGPACK_NATIVE_VERSION)
|
2012-09-03 22:58:37 +02:00
|
|
|
LUA_MSGPACK_NATIVE_DEPENDENCIES = lua
|
|
|
|
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
|
|
|
|
|
|
|
|
define LUA_MSGPACK_NATIVE_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/lua/msgpack.so
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LUA_MSGPACK_NATIVE_CLEAN_CMDS
|
|
|
|
rm -f $(@D)/msgpack.so
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|