diff options
author | jseitter@stz-gab.de <jseitter@stz-gab.de> | 2015-06-25 00:19:56 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-06-28 15:14:41 +0200 |
commit | 3962e752d82e9b6e7e41e5ed3a777566212ad02e (patch) | |
tree | 5c8c7c5a97a24754c6d81df0aa49803b60ef69bb /package/mosquitto/Makefile | |
parent | 1490a2c23ffae8b0df564d4a53a65e8d1ee92919 (diff) |
add mosquitto and c-ares
Signed-off-by: Joerg Seitter <joerg.seitter@stz-gab.de>
Diffstat (limited to 'package/mosquitto/Makefile')
-rw-r--r-- | package/mosquitto/Makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/package/mosquitto/Makefile b/package/mosquitto/Makefile new file mode 100644 index 000000000..206099b15 --- /dev/null +++ b/package/mosquitto/Makefile @@ -0,0 +1,46 @@ +# 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:= mosquitto +PKG_VERSION:= 1.3.5 +PKG_RELEASE:= 1 +PKG_HASH:= 16eb3dbef183827665feee9288362c7352cd016ba04ca0402a0ccf857d1c2ab2 +PKG_DESCR:= MQTT Broker +PKG_SECTION:= net/misc +PKG_DEPENDS:= c-ares +PKG_BUILDDEP:= cmake-host c-ares +PKG_URL:= http://mosquitto.org +PKG_SITES:= http://mosquitto.org/files/source/ + +# if downloaded package is not ending with .tar.xz use following +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz + +include $(ADK_TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,MOSQUITTO,mosquitto,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +CONFIG_STYLE:= manual + +do-configure: + (cd ${WRKBUILD} && PATH='${HOST_PATH}' \ + cmake -DCMAKE_SYSTEM_NAME=Linux .) + +mosquitto-install: + $(INSTALL_DIR) $(IDIR_MOSQUITTO)/usr/bin + $(INSTALL_DIR) $(IDIR_MOSQUITTO)/usr/sbin + $(INSTALL_DIR) $(IDIR_MOSQUITTO)/usr/lib + $(INSTALL_DIR) $(IDIR_MOSQUITTO)/etc/mosquitto + $(INSTALL_BIN) $(WRKINST)/usr/local/bin/mosquitto* \ + $(IDIR_MOSQUITTO)/usr/bin + $(INSTALL_BIN) $(WRKINST)/usr/local/sbin/mosquitto* \ + $(IDIR_MOSQUITTO)/usr/sbin + $(INSTALL_DATA) $(WRKINST)/etc/mosquitto/* \ + $(IDIR_MOSQUITTO)/etc/mosquitto + $(CP) $(WRKINST)/usr/local/lib/*.so* \ + $(IDIR_MOSQUITTO)/usr/lib + + + +include ${ADK_TOPDIR}/mk/pkg-bottom.mk |