Mercurial > mxe-octave
view src/paho-mqtt-c.mk @ 6268:0cb39c399ed8
Add paha-mqtt-c
* src/paho-mqtt-c-1-fixes.patch, src/paho-mqtt-c.mk: new files
* dist-files.mk: add ref to new files
* index.html: add paho-mqtt-c to index
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Tue, 21 Jun 2022 09:03:37 -0400 |
parents | |
children | 82ac48ede1a0 |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := paho-mqtt-c $(PKG)_IGNORE := $(PKG)_VERSION := 1.3.10 $(PKG)_CHECKSUM := 60d38f73f65abc58e77700e5ead8169119bdd332 $(PKG)_SUBDIR := paho.mqtt.c-$($(PKG)_VERSION) $(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz $(PKG)_URL := https://github.com/eclipse/paho.mqtt.c/archive/refs/tags/v$($(PKG)_VERSION).tar.gz $(PKG)_DEPS := $(PKG)_CMAKE_FLAGS := define $(PKG)_UPDATE $(WGET) -q -O- 'https://github.com/eclipse/paho.mqtt.c/tags' | \ $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | $(SORT) -V | \ tail -1 endef define $(PKG)_BUILD cd '$(1)' && cmake \ $($(PKG)_CMAKE_FLAGS) \ $(CMAKE_CCACHE_FLAGS) \ $(if $(BUILD_SHARED),-DPAHO_BUILD_SHARED=ON -DPAHO_BUILD_STATIC=OFF,-DPAHO_BUILD_SHARED=OFF -DPAHO_BUILD_STATIC=ON) \ -DPAHO_BUILD_DOCUMENTATION=OFF \ -DPAHO_ENABLE_TESTING=OFF \ -DPAHO_BUILD_SAMPLES=OFF \ -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ . $(MAKE) -C '$(1)' -j '$(JOBS)' VERBOSE=1 $(MAKE) -C '$(1)' -j '1' VERBOSE=1 DESTDIR='$(3)' install endef