Alexandre Belloni | 8dfd59d | 2013-06-05 23:53:30 +0000 | [diff] [blame^] | 1 | ################################################################################ |
Francois Perrad | 9de94e3 | 2012-09-03 20:58:37 +0000 | [diff] [blame] | 2 | # |
| 3 | # lua-msgpack-native |
| 4 | # |
Alexandre Belloni | 8dfd59d | 2013-06-05 23:53:30 +0000 | [diff] [blame^] | 5 | ################################################################################ |
Alexandre Belloni | 7027040 | 2013-06-05 23:53:25 +0000 | [diff] [blame] | 6 | |
Francois Perrad | ee3a961 | 2012-11-16 02:42:56 +0000 | [diff] [blame] | 7 | LUA_MSGPACK_NATIVE_VERSION = g41cce91 |
| 8 | LUA_MSGPACK_NATIVE_SITE = http://github.com/kengonakajima/lua-msgpack-native/tarball/master |
Francois Perrad | 9de94e3 | 2012-09-03 20:58:37 +0000 | [diff] [blame] | 9 | LUA_MSGPACK_NATIVE_DEPENDENCIES = lua |
| 10 | LUA_MSGPACK_NATIVE_LICENSE = Apache-2.0 |
| 11 | LUA_MSGPACK_NATIVE_LICENSE_FILES = LICENSE.txt |
| 12 | |
| 13 | define LUA_MSGPACK_NATIVE_BUILD_CMDS |
| 14 | $(TARGET_CC) $(TARGET_CFLAGS) -fPIC -shared -o $(@D)/msgpack.so $(@D)/mp.c |
| 15 | endef |
| 16 | |
| 17 | define LUA_MSGPACK_NATIVE_INSTALL_TARGET_CMDS |
| 18 | $(INSTALL) -m 755 -D $(@D)/msgpack.so $(TARGET_DIR)/usr/lib/lua/msgpack.so |
| 19 | endef |
| 20 | |
| 21 | define LUA_MSGPACK_NATIVE_UNINSTALL_TARGET_CMDS |
| 22 | rm -f $(TARGET_DIR)/usr/lib/lua/msgpack.so |
| 23 | endef |
| 24 | |
| 25 | define LUA_MSGPACK_NATIVE_CLEAN_CMDS |
| 26 | rm -f $(@D)/msgpack.so |
| 27 | endef |
| 28 | |
| 29 | $(eval $(generic-package)) |