All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Correction: Added packages: libmsgpack (v. 0.5.7) and msgpack-python (0.1.10)
@ 2012-08-05 13:10 Wojciech M. Zabolotny
  2012-08-05 13:10 ` [Buildroot] [PATCH 1/2] 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) Wojciech M. Zabolotny
  2012-08-05 13:10 ` [Buildroot] [PATCH 2/2] Corrected .mk files to consider differences between buldroot-2011.11 and the current version Wojciech M. Zabolotny
  0 siblings, 2 replies; 3+ messages in thread
From: Wojciech M. Zabolotny @ 2012-08-05 13:10 UTC (permalink / raw)
  To: buildroot


In the previous version of patch I've used old commands at the end of the .mk
files. They were good for buildroot-2011.11 but didn't work for the cuurent
version. New packages were displayed in "make menuconfig", but silently ignored
during the compilation.
Now I send the corrected patches.

Regards, 
Wojtek

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/2] 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).
  2012-08-05 13:10 [Buildroot] Correction: Added packages: libmsgpack (v. 0.5.7) and msgpack-python (0.1.10) Wojciech M. Zabolotny
@ 2012-08-05 13:10 ` Wojciech M. Zabolotny
  2012-08-05 13:10 ` [Buildroot] [PATCH 2/2] Corrected .mk files to consider differences between buldroot-2011.11 and the current version Wojciech M. Zabolotny
  1 sibling, 0 replies; 3+ messages in thread
From: Wojciech M. Zabolotny @ 2012-08-05 13:10 UTC (permalink / raw)
  To: buildroot

From: "Wojciech M. Zabolotny" <wzab01@gmail.com>

Signed-off-by: Wojciech M. Zabolotny <wzab01@gmail.com>
---
 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

diff --git a/package/Config.in b/package/Config.in
index f308de7..42d0718 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/libmsgpack/Config.in b/package/libmsgpack/Config.in
new file mode 100644
index 0000000..d8edd4d
--- /dev/null
+++ b/package/libmsgpack/Config.in
@@ -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
+	  
diff --git a/package/libmsgpack/README b/package/libmsgpack/README
new file mode 100644
index 0000000..b2e25f7
--- /dev/null
+++ b/package/libmsgpack/README
@@ -0,0 +1 @@
+Created by WZab
diff --git a/package/libmsgpack/libmsgpack-0.5.7-001.patch b/package/libmsgpack/libmsgpack-0.5.7-001.patch
new file mode 100644
index 0000000..6b3ad60
--- /dev/null
+++ b/package/libmsgpack/libmsgpack-0.5.7-001.patch
@@ -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 \
diff --git a/package/libmsgpack/libmsgpack.mk b/package/libmsgpack/libmsgpack.mk
new file mode 100644
index 0000000..eeaea52
--- /dev/null
+++ b/package/libmsgpack/libmsgpack.mk
@@ -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))
diff --git a/package/msgpack-python/Config.in b/package/msgpack-python/Config.in
new file mode 100644
index 0000000..25c3cd6
--- /dev/null
+++ b/package/msgpack-python/Config.in
@@ -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/
+
diff --git a/package/msgpack-python/msgpack-python.mk b/package/msgpack-python/msgpack-python.mk
new file mode 100644
index 0000000..d70e9de
--- /dev/null
+++ b/package/msgpack-python/msgpack-python.mk
@@ -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))
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 2/2] Corrected .mk files to consider differences between buldroot-2011.11 and the current version
  2012-08-05 13:10 [Buildroot] Correction: Added packages: libmsgpack (v. 0.5.7) and msgpack-python (0.1.10) Wojciech M. Zabolotny
  2012-08-05 13:10 ` [Buildroot] [PATCH 1/2] 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) Wojciech M. Zabolotny
@ 2012-08-05 13:10 ` Wojciech M. Zabolotny
  1 sibling, 0 replies; 3+ messages in thread
From: Wojciech M. Zabolotny @ 2012-08-05 13:10 UTC (permalink / raw)
  To: buildroot

From: "Wojciech M. Zabolotny" <wzab01@gmail.com>

Signed-off-by: Wojciech M. Zabolotny <wzab01@gmail.com>
---
 package/libmsgpack/libmsgpack.mk         |    3 ++-
 package/msgpack-python/msgpack-python.mk |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/package/libmsgpack/libmsgpack.mk b/package/libmsgpack/libmsgpack.mk
index eeaea52..a22dd53 100644
--- a/package/libmsgpack/libmsgpack.mk
+++ b/package/libmsgpack/libmsgpack.mk
@@ -10,4 +10,5 @@ LIBMSGPACK_INSTALL_STAGING=YES
 LIBMSGPACK_INSTALL_TARGET=YES
 LIBMSGPACK_AUTORECONF=YES
 LIBMSGPACK_CONF_OPT = --disable-cxx --disable-dependency-tracking
-$(eval $(call AUTOTARGETS))
+$(eval $(autotools-package))
+$(eval $(host-autotools-package))
\ No newline at end of file
diff --git a/package/msgpack-python/msgpack-python.mk b/package/msgpack-python/msgpack-python.mk
index d70e9de..44549ba 100644
--- a/package/msgpack-python/msgpack-python.mk
+++ b/package/msgpack-python/msgpack-python.mk
@@ -24,4 +24,4 @@ define MSGPACK_PYTHON_INSTALL_TARGET_CMDS
 	(cd $(@D); $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr)
 endef
 
-$(eval $(call GENTARGETS))
+$(eval $(generic-package))
\ No newline at end of file
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-05 13:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-05 13:10 [Buildroot] Correction: Added packages: libmsgpack (v. 0.5.7) and msgpack-python (0.1.10) Wojciech M. Zabolotny
2012-08-05 13:10 ` [Buildroot] [PATCH 1/2] 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) Wojciech M. Zabolotny
2012-08-05 13:10 ` [Buildroot] [PATCH 2/2] Corrected .mk files to consider differences between buldroot-2011.11 and the current version Wojciech M. Zabolotny

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.