aboutsummaryrefslogtreecommitdiff
path: root/package/nanomsg
diff options
context:
space:
mode:
authorGravatar Rahul Bedarkar <rahulbedarkar89@gmail.com>2017-04-21 14:52:04 +0530
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-05-01 11:22:33 +0200
commit1ad03d5481ec3329bb9bc73799398737faddd386 (patch)
tree488522b469f8d524489e4292ad5a8a777bfcbb13 /package/nanomsg
parente947766891c0473d0406afcf1e9a77e25292020a (diff)
downloadbuildroot-1ad03d5481ec3329bb9bc73799398737faddd386.tar.gz
buildroot-1ad03d5481ec3329bb9bc73799398737faddd386.tar.bz2
nanomsg: new package
Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Reviewed-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/nanomsg')
-rw-r--r--package/nanomsg/Config.in23
-rw-r--r--package/nanomsg/nanomsg.hash2
-rw-r--r--package/nanomsg/nanomsg.mk24
3 files changed, 49 insertions, 0 deletions
diff --git a/package/nanomsg/Config.in b/package/nanomsg/Config.in
new file mode 100644
index 0000000000..0cab8b4771
--- /dev/null
+++ b/package/nanomsg/Config.in
@@ -0,0 +1,23 @@
+config BR2_PACKAGE_NANOMSG
+ bool "nanomsg"
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ help
+ nanomsg is a socket library that provides several common
+ communication patterns. It aims to make the networking layer
+ fast, scalable, and easy to use. Implemented in C, it works
+ on a wide range of operating systems with no further
+ dependencies.
+
+ http://nanomsg.org/
+
+if BR2_PACKAGE_NANOMSG
+
+config BR2_PACKAGE_NANOMSG_TOOLS
+ bool "Build nanomsg tools"
+ help
+ Build nanomsg tools
+
+endif
+
+comment "nanomsg needs a toolchain w/ threads"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/nanomsg/nanomsg.hash b/package/nanomsg/nanomsg.hash
new file mode 100644
index 0000000000..5f947da967
--- /dev/null
+++ b/package/nanomsg/nanomsg.hash
@@ -0,0 +1,2 @@
+# Locally computed
+sha256 24afdeb71b2e362e8a003a7ecc906e1b84fd9f56ce15ec567481d1bb33132cc7 nanomsg-1.0.0.tar.gz
diff --git a/package/nanomsg/nanomsg.mk b/package/nanomsg/nanomsg.mk
new file mode 100644
index 0000000000..3b1c2ca0c4
--- /dev/null
+++ b/package/nanomsg/nanomsg.mk
@@ -0,0 +1,24 @@
+################################################################################
+#
+# nanomsg
+#
+################################################################################
+
+NANOMSG_VERSION = 1.0.0
+NANOMSG_SITE = $(call github,nanomsg,nanomsg,$(NANOMSG_VERSION))
+NANOMSG_INSTALL_STAGING = YES
+NANOMSG_LICENSE = MIT
+NANOMSG_LICENSE_FILES = COPYING
+NANOMSG_CONF_OPTS = -DNN_ENABLE_DOC=OFF -DNN_TESTS=OFF
+
+ifeq ($(BR2_STATIC_LIBS),y)
+NANOMSG_CONF_OPTS += -DNN_STATIC_LIB=ON
+endif
+
+ifeq ($(BR2_PACKAGE_NANOMSG_TOOLS),y)
+NANOMSG_CONF_OPTS += -DNN_TOOLS=ON
+else
+NANOMSG_CONF_OPTS += -DNN_TOOLS=OFF
+endif
+
+$(eval $(cmake-package))