mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: PTXdist Mailing List <ptxdist@pengutronix.de>
Cc: Marc Kleine-Budde <mkl@pengutronix.de>,
	Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH v1 04/11] paho-mqtt-c: new package
Date: Tue, 28 May 2019 13:57:49 +0200	[thread overview]
Message-ID: <20190528115756.2279-4-rhi@pengutronix.de> (raw)
In-Reply-To: <20190528115756.2279-1-rhi@pengutronix.de>

From: Marc Kleine-Budde <mkl@pengutronix.de>

Co-authored-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/paho-mqtt-c.in   | 12 ++++++++
 rules/paho-mqtt-c.make | 62 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)
 create mode 100644 rules/paho-mqtt-c.in
 create mode 100644 rules/paho-mqtt-c.make

diff --git a/rules/paho-mqtt-c.in b/rules/paho-mqtt-c.in
new file mode 100644
index 000000000000..c8ad25ff6b9a
--- /dev/null
+++ b/rules/paho-mqtt-c.in
@@ -0,0 +1,12 @@
+## SECTION=system_libraries
+
+config PAHO_MQTT_C
+	tristate "paho.mqtt.c"
+	select HOST_CMAKE
+	select OPENSSL
+	help
+	  C package implementing MQTT client library by Eclipse Paho
+
+	  The Paho MQTT package provides a library which enable
+	  applications to connect to broker to publish messages, and
+	  to subscribe to topics and receive published messages.
diff --git a/rules/paho-mqtt-c.make b/rules/paho-mqtt-c.make
new file mode 100644
index 000000000000..7ccd1775d5c3
--- /dev/null
+++ b/rules/paho-mqtt-c.make
@@ -0,0 +1,62 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Marc Kleine-Budde <mkl@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PAHO_MQTT_C) += paho-mqtt-c
+
+#
+# Paths and names
+#
+PAHO_MQTT_C_VERSION	:= 1.3.0
+PAHO_MQTT_C_MD5		:= 8fac1bff9b0d5a74fa1caf8db0501fca
+PAHO_MQTT_C		:= paho.mqtt.c-$(PAHO_MQTT_C_VERSION)
+PAHO_MQTT_C_SUFFIX	:= tar.gz
+PAHO_MQTT_C_URL		:= https://github.com/eclipse/paho.mqtt.c/archive/v$(PAHO_MQTT_C_VERSION).$(PAHO_MQTT_C_SUFFIX)
+PAHO_MQTT_C_SOURCE	:= $(SRCDIR)/$(PAHO_MQTT_C).$(PAHO_MQTT_C_SUFFIX)
+PAHO_MQTT_C_DIR		:= $(BUILDDIR)/$(PAHO_MQTT_C)
+# "Eclipse Distribution License - v 1.0" is in fact BSD-3-Clause
+PAHO_MQTT_C_LICENSE	:= EPL-1.0 AND BSD-3-Clause
+PAHO_MQTT_C_LICENSE_FILES := \
+	file://LICENSE;md5=f2001efbb1450daa099206651f80d39c \
+	file://epl-v10;md5=659c8e92a40b6df1d9e3dccf5ae45a08 \
+	file://edl-v10;md5=3adfcc70f5aeb7a44f3f9b495aa1fbf3
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PAHO_MQTT_C_CONF_TOOL	:= cmake
+PAHO_MQTT_C_CONF_OPT	:= \
+	$(CROSS_CMAKE_USR) \
+	-DPAHO_WITH_SSL=TRUE \
+	-DOPENSSL_SEARCH_PATH=$(PTXDIST_SYSROOT_TARGET)/usr
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/paho-mqtt-c.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, paho-mqtt-c)
+	@$(call install_fixup, paho-mqtt-c,PRIORITY,optional)
+	@$(call install_fixup, paho-mqtt-c,SECTION,base)
+	@$(call install_fixup, paho-mqtt-c,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
+	@$(call install_fixup, paho-mqtt-c,DESCRIPTION,missing)
+
+	@$(call install_lib, paho-mqtt-c, 0, 0, 0644, libpaho-mqtt3as)
+
+	@$(call install_finish, paho-mqtt-c)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2019-05-28 11:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-28 11:57 [ptxdist] [PATCH v1 01/11] rsync: add "rsync over ssh" feature Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 02/11] yajl: improve kconfig help text Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 03/11] minicoredumper: enable and configure minicoredumper Roland Hieber
2019-05-28 11:57 ` Roland Hieber [this message]
2019-05-28 11:57 ` [ptxdist] [PATCH v1 05/11] paho-mqtt-cpp: new package Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 06/11] host-autotools-autoconf-archive: " Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 07/11] rootfs: add tpm user and group Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 08/11] tpm: add new menu Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 09/11] tpm2-tss: new package Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 10/11] tpm2-abrmd: " Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 11/11] tpm2-tools: " Roland Hieber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190528115756.2279-4-rhi@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=mkl@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox