summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/paho/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/paho/Makefile b/package/paho/Makefile
new file mode 100644
index 000000000..b28d6dd1e
--- /dev/null
+++ b/package/paho/Makefile
@@ -0,0 +1,34 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= paho
+PKG_VERSION:= v1.3.1
+PKG_RELEASE:= 1
+#PKG_HASH:= 7b4eed66ae3df3613629139c0df28b16abfa4e0927bd17360027d936784aa55e
+PKG_GIT:= tag
+PKG_DESCR:= Eclipse Paho MQTT client library
+PKG_SECTION:= libs/misc
+PKG_URL:= https://www.eclipse.org/paho/clients/c/a
+PKG_SITES:= https://github.com/eclipse/paho.mqtt.c.git
+PKG_OPTS:= dev
+
+#DISTFILES:= v$(PKG_VERSION).tar.gz
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,PAHO,paho,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
+
+
+CONFIG_STYLE:= cmake
+
+paho-install:
+ $(INSTALL_DIR) $(IDIR_PAHO)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/MQTTVersion \
+ $(IDIR_PAHO)/usr/bin
+ $(INSTALL_DIR) $(IDIR_PAHO)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libpaho*.so* \
+ $(IDIR_PAHO)/usr/lib
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk