blob: 4979a11f78efe6e4226c4ae4679263461e82b019 [file] [log] [blame]
Alexandre Belloni8dfd59d2013-06-05 23:53:30 +00001################################################################################
Francois Perrad9de94e32012-09-03 20:58:37 +00002#
3# lua-msgpack-native
4#
Alexandre Belloni8dfd59d2013-06-05 23:53:30 +00005################################################################################
Alexandre Belloni70270402013-06-05 23:53:25 +00006
Francois Perradee3a9612012-11-16 02:42:56 +00007LUA_MSGPACK_NATIVE_VERSION = g41cce91
8LUA_MSGPACK_NATIVE_SITE = http://github.com/kengonakajima/lua-msgpack-native/tarball/master
Francois Perrad9de94e32012-09-03 20:58:37 +00009LUA_MSGPACK_NATIVE_DEPENDENCIES = lua
10LUA_MSGPACK_NATIVE_LICENSE = Apache-2.0
11LUA_MSGPACK_NATIVE_LICENSE_FILES = LICENSE.txt
12
13define LUA_MSGPACK_NATIVE_BUILD_CMDS
14 $(TARGET_CC) $(TARGET_CFLAGS) -fPIC -shared -o $(@D)/msgpack.so $(@D)/mp.c
15endef
16
17define LUA_MSGPACK_NATIVE_INSTALL_TARGET_CMDS
18 $(INSTALL) -m 755 -D $(@D)/msgpack.so $(TARGET_DIR)/usr/lib/lua/msgpack.so
19endef
20
21define LUA_MSGPACK_NATIVE_UNINSTALL_TARGET_CMDS
22 rm -f $(TARGET_DIR)/usr/lib/lua/msgpack.so
23endef
24
25define LUA_MSGPACK_NATIVE_CLEAN_CMDS
26 rm -f $(@D)/msgpack.so
27endef
28
29$(eval $(generic-package))