Patchwork czmq: new package

login
register
mail settings
Submitter Simon Dawson
Date March 21, 2013, 1:01 p.m.
Message ID <1363870885-27916-1-git-send-email-spdawson@gmail.com>
Download mbox | patch
Permalink /patch/229667/
State Superseded
Headers show

Comments

Simon Dawson - March 21, 2013, 1:01 p.m.
From: Simon Dawson <spdawson@gmail.com>

Signed-off-by: Simon Dawson <spdawson@gmail.com>
---
 package/Config.in      |    1 +
 package/czmq/Config.in |   14 ++++++++++++++
 package/czmq/czmq.mk   |   22 ++++++++++++++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 package/czmq/Config.in
 create mode 100644 package/czmq/czmq.mk
Alexander Lukichev - March 22, 2013, 6:06 a.m.
Hi, Simon!

2013/3/21 <spdawson@gmail.com>
> +comment "czmq requires a toolchain with C++, LARGEFILE and WCHAR support"
> +       depends on !(BR2_INSTALL_LIBSTDCPP && BR2_INET_IPV6 &&
BR2_LARGEFILE && BR2_USE_WCHAR)

IPV6 is either omitted from the comment or falsely added to the condition.

--
Best regards,
  Alexander Lukichev
Simon Dawson - March 22, 2013, 7:43 a.m.
On 22 March 2013 06:06, Alexander Lukichev <alexander.lukichev@gmail.com> wrote:
>> +comment "czmq requires a toolchain with C++, LARGEFILE and WCHAR support"
>> +       depends on !(BR2_INSTALL_LIBSTDCPP && BR2_INET_IPV6 &&
>> BR2_LARGEFILE && BR2_USE_WCHAR)
>
> IPV6 is either omitted from the comment or falsely added to the condition.

Thanks for the feedback Alexander; will fix and resubmit.

Simon.

Patch

diff --git a/package/Config.in b/package/Config.in
index 94e279b..84bfdbf 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -494,6 +494,7 @@  source "package/mediastreamer/Config.in"
 endmenu
 
 menu "Networking"
+source "package/czmq/Config.in"
 source "package/glib-networking/Config.in"
 source "package/libcgi/Config.in"
 source "package/libcgicc/Config.in"
diff --git a/package/czmq/Config.in b/package/czmq/Config.in
new file mode 100644
index 0000000..20d9285
--- /dev/null
+++ b/package/czmq/Config.in
@@ -0,0 +1,14 @@ 
+config BR2_PACKAGE_CZMQ
+	bool "czmq"
+	select BR2_PACKAGE_ZEROMQ
+	depends on BR2_INSTALL_LIBSTDCPP # zeromq
+	depends on BR2_INET_IPV6 # zeromq
+	depends on BR2_LARGEFILE # util-linux
+	depends on BR2_USE_WCHAR # util-linux
+	help
+	  High-level C Binding for 0MQ
+
+	  http://czmq.zeromq.org/
+
+comment "czmq requires a toolchain with C++, LARGEFILE and WCHAR support"
+	depends on !(BR2_INSTALL_LIBSTDCPP && BR2_INET_IPV6 && BR2_LARGEFILE && BR2_USE_WCHAR)
diff --git a/package/czmq/czmq.mk b/package/czmq/czmq.mk
new file mode 100644
index 0000000..98991fe
--- /dev/null
+++ b/package/czmq/czmq.mk
@@ -0,0 +1,22 @@ 
+#############################################################
+#
+# czmq
+#
+#############################################################
+
+CZMQ_VERSION = cb9839cf90
+CZMQ_SITE = git://github.com/zeromq/czmq.git
+
+CZMQ_AUTORECONF = YES
+CZMQ_INSTALL_STAGING = YES
+CZMQ_DEPENDENCIES = zeromq
+CZMQ_LICENSE = LGPLv3+ with exceptions
+CZMQ_LICENSE_FILES = COPYING COPYING.LESSER
+
+define CZMQ_CREATE_CONFIG_DIR
+	mkdir -p $(@D)/config
+endef
+
+CZMQ_PRE_CONFIGURE_HOOKS += CZMQ_CREATE_CONFIG_DIR
+
+$(eval $(autotools-package))