aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Pranit Sirsat <Pranit.Sirsat@imgtec.com>2016-09-29 15:09:58 +0530
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-10-07 15:49:59 +0200
commit77c3feabde2991620b3a26177213aca5863a2fb8 (patch)
treed5333d36ecf473b74b74f4b3c1c975e656e897e8 /package
parent7de5b0d2d83bec38ec96ef5917259d9f46df58d4 (diff)
downloadbuildroot-77c3feabde2991620b3a26177213aca5863a2fb8.tar.gz
buildroot-77c3feabde2991620b3a26177213aca5863a2fb8.tar.bz2
paho-mqtt-c: new package
Reviewed-by: Abhimanyu Vishwakarma <Abhimanyu.Vishwakarma@imgtec.com> Reviewed-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com> Signed-off-by: Pranit Tanaji Sirsat <Pranit.Sirsat@imgtec.com> [Thomas: use += instead of = for assignments inside conditions.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r--package/Config.in1
-rw-r--r--package/paho-mqtt-c/Config.in11
-rw-r--r--package/paho-mqtt-c/paho-mqtt-c.hash2
-rw-r--r--package/paho-mqtt-c/paho-mqtt-c.mk20
4 files changed, 34 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index c3bcf73544..dc5fed8e6b 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1240,6 +1240,7 @@ menu "Networking"
source "package/openpgm/Config.in"
source "package/openzwave/Config.in"
source "package/ortp/Config.in"
+ source "package/paho-mqtt-c/Config.in"
source "package/qdecoder/Config.in"
source "package/qpid-proton/Config.in"
source "package/rabbitmq-c/Config.in"
diff --git a/package/paho-mqtt-c/Config.in b/package/paho-mqtt-c/Config.in
new file mode 100644
index 0000000000..3560d8c08c
--- /dev/null
+++ b/package/paho-mqtt-c/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PAHO_MQTT_C
+ bool "paho-mqtt-c"
+ depends on !BR2_STATIC_LIBS # dlopen()
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ help
+ MQTT client C library
+
+ https://eclipse.org/paho/clients/c/
+
+comment "paho-mqtt-c needs a toolchain w/ threads and dynamic library support"
+ depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/paho-mqtt-c/paho-mqtt-c.hash b/package/paho-mqtt-c/paho-mqtt-c.hash
new file mode 100644
index 0000000000..8807d788a3
--- /dev/null
+++ b/package/paho-mqtt-c/paho-mqtt-c.hash
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256 970b9621efc24251441d386274cd0a90cf6ad52b64031f3c8cb53fdd5526f5f3 paho-mqtt-c-v1.1.0.tar.gz
diff --git a/package/paho-mqtt-c/paho-mqtt-c.mk b/package/paho-mqtt-c/paho-mqtt-c.mk
new file mode 100644
index 0000000000..7fb3026d93
--- /dev/null
+++ b/package/paho-mqtt-c/paho-mqtt-c.mk
@@ -0,0 +1,20 @@
+################################################################################
+#
+# paho-mqtt-c
+#
+################################################################################
+
+PAHO_MQTT_C_VERSION = v1.1.0
+PAHO_MQTT_C_SITE = $(call github,eclipse,paho.mqtt.c,$(PAHO_MQTT_C_VERSION))
+PAHO_MQTT_C_LICENSE = EPL-1.0 or BSD-3c
+PAHO_MQTT_C_LICENSE_FILES = epl-v10 edl-v10
+PAHO_MQTT_C_INSTALL_STAGING = YES
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+PAHO_MQTT_C_DEPENDENCIES += openssl
+PAHO_MQTT_C_CONF_OPTS += -DPAHO_WITH_SSL=TRUE
+else
+PAHO_MQTT_C_CONF_OPTS += -DPAHO_WITH_SSL=FALSE
+endif
+
+$(eval $(cmake-package))