Added packages: libmsgpack (v. 0.5.7) and msgpack-python (0.1.10)
I had to add two packages msgpack-python and libmsgpack to my embedded system running Linux compiled with buildroot-2011.11 Unfortunately this version of buildroot does not support setuptools, so I couldn't use the msgpack-python v. 0.2.0, and had to use older v.
0.1.10.
As my buildroot is compiled without C++ support, I had also to disable the C++ API in libmsgpack.
PATCH 1/1 Added packages libmsgpack (v. 0.5.7) without C++ support (as in small embedded systems buildroot is often compiled without C++ support) and msgpack-python version 0.1.10 (which does not rely yet on python-setuptools. I had to add those packages to buildroot-2011.11 which didn't support the setuptools yet).
From: "Wojciech M. Zabolotny" <[email protected]>
Signed-off-by Wojciech M. Zabolotny <[email protected]>
--- package/Config.in | 2 ++ package/libmsgpack/Config.in | 8 ++++++++ package/libmsgpack/README | 1 + package/libmsgpack/libmsgpack-0.5.7-001.patch | 25 +++++++++++++++++++++++ package/libmsgpack/libmsgpack.mk | 13 ++++++++++++ package/msgpack-python/Config.in | 8 ++++++++ package/msgpack-python/msgpack-python.mk | 27 +++++++++++++++++++++++++ 7 files changed, 84 insertions(+) create mode 100644 package/libmsgpack/Config.in create mode 100644 package/libmsgpack/README create mode 100644 package/libmsgpack/libmsgpack-0.5.7-001.patch create mode 100644 package/libmsgpack/libmsgpack.mk create mode 100644 package/msgpack-python/Config.in create mode 100644 package/msgpack-python/msgpack-python.mk
package/Config.in +2 -0
@@ -275,6 +275,7 @@ source "package/python-nfc/Config.in" source "package/python-pygame/Config.in" source "package/python-serial/Config.in" source "package/python-setuptools/Config.in" +source "package/msgpack-python/Config.in" endmenu endif source "package/ruby/Config.in"
@@ -461,6 +462,7 @@ source "package/libsigc/Config.in" source "package/libtpl/Config.in" source "package/liburcu/Config.in" source "package/lttng-libust/Config.in" +source "package/libmsgpack/Config.in" source "package/orc/Config.in" source "package/poco/Config.in" source "package/protobuf/Config.in"
package/libmsgpack/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_LIBMSGPACK + bool "libmsgpack" + help + LibMsgPack is a library for packing and unpacking data + structures in C + + http://msgpack.org +
package/libmsgpack/README new file +1 -0
@@ -0,0 +1 @@ +Created by WZab
package/libmsgpack/libmsgpack-0.5.7-001.patch new file +25 -0
@@ -0,0 +1,25 @@ +diff -u -r msgpack-0.5.7.orig/configure.in msgpack-0.5.7/configure.in +--- msgpack-0.5.7.orig/configure.in 2011-08-08 15:51:19.000000000 +0100 ++++ msgpack-0.5.7/configure.in 2012-07-06 22:02:38.000000000 +0100 +@@ -1,6 +1,6 @@ +-AC_INIT(src/object.cpp) ++AC_INIT(msgpack, 0.5.7) + AC_CONFIG_AUX_DIR(ac) +-AM_INIT_AUTOMAKE(msgpack, 0.5.7) ++AM_INIT_AUTOMAKE(no-dependencies) + AC_CONFIG_HEADER(config.h) + + AC_SUBST(CFLAGS) +diff -u -r msgpack-0.5.7.orig/src/Makefile.am msgpack-0.5.7/src/Makefile.am +--- msgpack-0.5.7.orig/src/Makefile.am 2011-06-12 07:07:29.000000000 +0100 ++++ msgpack-0.5.7/src/Makefile.am 2012-07-06 22:27:09.000000000 +0100 +@@ -1,5 +1,7 @@ +- +-lib_LTLIBRARIES = libmsgpack.la ++lib_LTLIBRARIES = ++if ENABLE_CXX ++lib_LTLIBRARIES += libmsgpack.la ++endif + + libmsgpack_la_SOURCES = \ + unpack.c \
package/libmsgpack/libmsgpack.mk new file +13 -0
@@ -0,0 +1,13 @@ +############################################################# +# +# libmsgpack +# +############################################################# +LIBMSGPACK_VERSION:=0.5.7 +LIBMSGPACK_SOURCE:=msgpack-$(LIBMSGPACK_VERSION).tar.gz +LIBMSGPACK_SITE:=http://msgpack.org/releases/cpp +LIBMSGPACK_INSTALL_STAGING=YES +LIBMSGPACK_INSTALL_TARGET=YES +LIBMSGPACK_AUTORECONF=YES +LIBMSGPACK_CONF_OPT = --disable-cxx --disable-dependency-tracking +$(eval $(call AUTOTARGETS))
package/msgpack-python/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_MSGPACK_PYTHON + bool "msgpack-python" + depends on BR2_PACKAGE_PYTHON + help + msgpack-python is a Python library to serialize/deserialize Python data + + http://pypi.python.org/pypi/msgpack-python/ +
package/msgpack-python/msgpack-python.mk new file +27 -0
@@ -0,0 +1,27 @@ +############################################################# +# +# msgpack-python +# +############################################################# + +MSGPACK_PYTHON_VERSION = 0.1.10 +MSGPACK_PYTHON_SOURCE = msgpack-python-$(MSGPACK_PYTHON_VERSION).tar.gz +MSGPACK_PYTHON_SITE = http://pypi.python.org/packages/source/m/msgpack-python +MSGPACK_PYTHON_DEPENDENCIES = python + +define MSGPACK_PYTHON_BUILD_CMDS + (cd $(@D); \ + CC="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDSHARED="$(TARGET_CC) -shared" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ + $(HOST_DIR)/usr/bin/python setup.py build_ext \ + --include-dirs=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)) + (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py build) +endef + +define MSGPACK_PYTHON_INSTALL_TARGET_CMDS + (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr) +endef + +$(eval $(call GENTARGETS))
Signature · 1 line
1.7.10.4