Mercurial > mxe-octave
annotate src/paho-mqtt-c.mk @ 6318:82ac48ede1a0
* src/paho-mqtt-c.mk: dont install docs
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 20 Jul 2022 08:11:11 -0400 |
parents | 0cb39c399ed8 |
children | 0156968bc3be |
rev | line source |
---|---|
6268 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := paho-mqtt-c | |
5 $(PKG)_IGNORE := | |
6 $(PKG)_VERSION := 1.3.10 | |
7 $(PKG)_CHECKSUM := 60d38f73f65abc58e77700e5ead8169119bdd332 | |
8 $(PKG)_SUBDIR := paho.mqtt.c-$($(PKG)_VERSION) | |
9 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz | |
10 $(PKG)_URL := https://github.com/eclipse/paho.mqtt.c/archive/refs/tags/v$($(PKG)_VERSION).tar.gz | |
11 $(PKG)_DEPS := | |
12 | |
13 $(PKG)_CMAKE_FLAGS := | |
14 | |
15 define $(PKG)_UPDATE | |
16 $(WGET) -q -O- 'https://github.com/eclipse/paho.mqtt.c/tags' | \ | |
17 $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | $(SORT) -V | \ | |
18 tail -1 | |
19 endef | |
20 | |
21 define $(PKG)_BUILD | |
22 cd '$(1)' && cmake \ | |
23 $($(PKG)_CMAKE_FLAGS) \ | |
24 $(CMAKE_CCACHE_FLAGS) \ | |
25 $(if $(BUILD_SHARED),-DPAHO_BUILD_SHARED=ON -DPAHO_BUILD_STATIC=OFF,-DPAHO_BUILD_SHARED=OFF -DPAHO_BUILD_STATIC=ON) \ | |
26 -DPAHO_BUILD_DOCUMENTATION=OFF \ | |
27 -DPAHO_ENABLE_TESTING=OFF \ | |
28 -DPAHO_BUILD_SAMPLES=OFF \ | |
29 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ | |
30 . | |
31 | |
32 $(MAKE) -C '$(1)' -j '$(JOBS)' VERBOSE=1 | |
33 $(MAKE) -C '$(1)' -j '1' VERBOSE=1 DESTDIR='$(3)' install | |
6318
82ac48ede1a0
* src/paho-mqtt-c.mk: dont install docs
John Donoghue <john.donoghue@ieee.org>
parents:
6268
diff
changeset
|
34 if [ "$(ENABLE_DEP_DOCS)" == "no" ]; then \ |
82ac48ede1a0
* src/paho-mqtt-c.mk: dont install docs
John Donoghue <john.donoghue@ieee.org>
parents:
6268
diff
changeset
|
35 rm -rf "$(3)$(HOST_PREFIX)/share/doc/Eclipse Paho C"; \ |
82ac48ede1a0
* src/paho-mqtt-c.mk: dont install docs
John Donoghue <john.donoghue@ieee.org>
parents:
6268
diff
changeset
|
36 fi |
6268 | 37 endef |