summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2012-09-03 20:58:37 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-11-15 12:39:12 +0100
commit9de94e34773407224dd8e59c76227d86538b59d2 (patch)
tree4a7ce05485ab0b2a2cd38334b7b16927820a67cf
parent62652478541c4bde626c218e747c067e431d2507 (diff)
downloadbuildroot-novena-9de94e34773407224dd8e59c76227d86538b59d2.tar.gz
buildroot-novena-9de94e34773407224dd8e59c76227d86538b59d2.zip
lua-msgpack-native: new package v2
[Peter: reformat Config.in to fit 80-col] Signed-off-by: Wojciech M. Zabolotny <wzab01@gmail.com> Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/Config.in1
-rw-r--r--package/lua-msgpack-native/Config.in7
-rw-r--r--package/lua-msgpack-native/lua-msgpack-native.mk29
3 files changed, 37 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 074e9dfde..5d9783ad5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -277,6 +277,7 @@ source "package/luacjson/Config.in"
source "package/luaexpat/Config.in"
source "package/luafilesystem/Config.in"
source "package/luasocket/Config.in"
+source "package/lua-msgpack-native/Config.in"
source "package/rings/Config.in"
source "package/wsapi/Config.in"
source "package/xavante/Config.in"
diff --git a/package/lua-msgpack-native/Config.in b/package/lua-msgpack-native/Config.in
new file mode 100644
index 000000000..8894ee535
--- /dev/null
+++ b/package/lua-msgpack-native/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LUA_MSGPACK_NATIVE
+ bool "lua-msgpack-native"
+ help
+ This is a native, C language implementation of msgpack
+ (http://msgpack.org) library/protocol for Lua language
+
+ https://github.com/kengonakajima/lua-msgpack-native
diff --git a/package/lua-msgpack-native/lua-msgpack-native.mk b/package/lua-msgpack-native/lua-msgpack-native.mk
new file mode 100644
index 000000000..5d8cd2d8b
--- /dev/null
+++ b/package/lua-msgpack-native/lua-msgpack-native.mk
@@ -0,0 +1,29 @@
+#############################################################
+#
+# lua-msgpack-native
+#
+#############################################################
+LUA_MSGPACK_NATIVE_VERSION = 41cce91ab6
+LUA_MSGPACK_NATIVE_SITE = git://github.com/kengonakajima/lua-msgpack-native.git
+LUA_MSGPACK_NATIVE_METHOD = git
+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))