Corrected packaging of lua-msgpack-native (without the binary file in patch)
Thanks to the suggestions from Samuel Martin, I've corrected the packaging of lua-msgpack-native ( https://github.com/kengonakajima/lua-msgpack-native )
the fast C implementation of msgpack protocol/library for Lua.
PATCH 1/1 lua-msgpack-native: new package
From: "Wojciech M. Zabolotny" <[email protected]>
I needed to add the fast msgpack implementation of msgpack library for Lua I've choosen the lua-msgpack-native implementation available at:
https://github.com/kengonakajima/lua-msgpack-native
The original sources come with Makefile creating dependences on another software. Therefore I've replaced the original Makefile with seriously simplified makefile, sufficient to compile the original source mp.c for buildroot.
--- package/Config.in | 1 + package/lua-msgpack-native/Config.in | 8 +++ .../lua-msgpack-native-41cce91ab6-0001.patch | 61 ++++++++++++++++++++ package/lua-msgpack-native/lua-msgpack-native.mk | 35 +++++++++++ 4 files changed, 105 insertions(+) create mode 100644 package/lua-msgpack-native/Config.in create mode 100644 package/lua-msgpack-native/lua-msgpack-native-41cce91ab6-0001.patch create mode 100644 package/lua-msgpack-native/lua-msgpack-native.mk
package/Config.in +1 -0
@@ -257,6 +257,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"
package/lua-msgpack-native/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +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 +
package/lua-msgpack-native/lua-msgpack-native-41cce91ab6-0001.patch new file +61 -0
61 lines not on this page · raw message
package/lua-msgpack-native/lua-msgpack-native.mk new file +35 -0
@@ -0,0 +1,35 @@ +############################################################# +# +# 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_INSTALL_STAGING = YES +LUA_MSGPACK_NATIVE_INSTALL_TARGET=YES + +define LUA_MSGPACK_NATIVE_BUILD_CMDS + $(MAKE) -C $(@D) -f makefile \ + CC="$(TARGET_CC)" LD="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS) -fPIC" +endef + +define LUA_MSGPACK_NATIVE_INSTALL_TARGET_CMDS + $(MAKE) -C $(@D) -f makefile \ + INSTALL_TOP_SHARE="$(TARGET_DIR)/usr/share/lua" \ + INSTALL_TOP_LIB="$(TARGET_DIR)/usr/lib/lua" install +endef + +define LUA_MSGPACK_NATIVE_UNINSTALL_TARGET_CMDS + rm -rf "$(TARGET_DIR)/usr/lib/lua/msgpack.so" +endef + +define LUA_MSGPACK_NATIVE_CLEAN_CMDS + $(MAKE) -C $(@D) -f makefile clean +endef + + +$(eval $(generic-package))
Signature · 1 line
1.7.10.4
PATCH 1/1 lua-msgpack-native: new package
2012/8/5 Wojciech M. Zabolotny <[email protected]>:
Quoted 11 lines
From: "Wojciech M. Zabolotny" <[email protected]>
I needed to add the fast msgpack implementation of msgpack library for Lua I've choosen the lua-msgpack-native implementation available at:
https://github.com/kengonakajima/lua-msgpack-nativeThe original sources come with
Makefilecreating dependences on another software. Therefore I've replaced the originalMakefilewith seriously simplified makefile, sufficient to compile the original sourcemp.cfor buildroot.
In this case, a Makefile is useless, see below So, lua-msgpack-native-41cce91ab6-0001.patch is useless I also add license information.
Fran?ois
#############################################################
#
# 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))
Quoted 4 lines
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot