summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Dawson <spdawson@gmail.com>2013-03-25 13:28:02 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-03-27 09:49:41 +0100
commit5514b7a520dea993e05d6fcddc40e4d55f467b7c (patch)
tree60eb068deaaf12a6032a63a1cb02f9876ab97078
parent34c6fc10342ffc1da2e4151b539832e17ce6c47c (diff)
downloadbuildroot-novena-5514b7a520dea993e05d6fcddc40e4d55f467b7c.tar.gz
buildroot-novena-5514b7a520dea993e05d6fcddc40e4d55f467b7c.zip
cppzmq: new package
Now that zeromq has been bumped to version 3.2.2, we need to provide the C++ binding using a separate package. The cppzmq package provides a simple single-header C++ binding. Signed-off-by: Simon Dawson <spdawson@gmail.com> [yann.morin.1998@free.fr: add comment about no license file] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/Config.in1
-rw-r--r--package/cppzmq/Config.in15
-rw-r--r--package/cppzmq/cppzmq.mk23
3 files changed, 39 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index d3901b40d..23c9bb349 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -497,6 +497,7 @@ endmenu
menu "Networking"
source "package/czmq/Config.in"
+source "package/cppzmq/Config.in"
source "package/glib-networking/Config.in"
source "package/libcgi/Config.in"
source "package/libcgicc/Config.in"
diff --git a/package/cppzmq/Config.in b/package/cppzmq/Config.in
new file mode 100644
index 000000000..ea632d143
--- /dev/null
+++ b/package/cppzmq/Config.in
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_CPPZMQ
+ bool "cppzmq"
+ depends on BR2_INSTALL_LIBSTDCPP
+ depends on BR2_INET_IPV6 # zeromq
+ depends on BR2_LARGEFILE # util-linux
+ depends on BR2_USE_WCHAR # util-linux
+ select BR2_PACKAGE_ZEROMQ
+ help
+ C++ binding for zeromq (ZeroMQ, 0MQ, zmq).
+
+ http://github.com/zeromq/cppzmq
+
+comment "cppzmq requires a toolchain with C++, IPV6, LARGEFILE and WCHAR support"
+ depends on !(BR2_INSTALL_LIBSTDCPP && BR2_INET_IPV6 && BR2_LARGEFILE \
+ && BR2_USE_WCHAR)
diff --git a/package/cppzmq/cppzmq.mk b/package/cppzmq/cppzmq.mk
new file mode 100644
index 000000000..d4609bf23
--- /dev/null
+++ b/package/cppzmq/cppzmq.mk
@@ -0,0 +1,23 @@
+#############################################################
+#
+# cppzmq
+#
+#############################################################
+
+CPPZMQ_VERSION = b232978
+CPPZMQ_SITE = git://github.com/zeromq/cppzmq.git
+CPPZMQ_INSTALL_STAGING = YES
+CPPZMQ_DEPENDENCIES = zeromq
+CPPZMQ_LICENSE = MIT
+# No license file, the license is in the installed header
+CPPZMQ_LICENSE_FILES = zmq.hpp
+
+define CPPZMQ_INSTALL_STAGING_CMDS
+ $(INSTALL) -m 0644 -D $(@D)/zmq.hpp $(STAGING_DIR)/usr/include/zmq.hpp
+endef
+
+define CPPZMQ_UNINSTALL_STAGING_CMDS
+ $(RM) $(STAGING_DIR)/usr/include/zmq.hpp
+endef
+
+$(eval $(generic-package))