Mercurial > mxe-octave
annotate src/paho-mqtt-c.mk @ 6588:9d89736ad698
* src/paho-mqtt-c.mk: update to v1.3.12
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Thu, 29 Dec 2022 08:58:39 -0500 |
parents | 4b8764444acb |
children | fc7925b7b5d2 |
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 := | |
6588
9d89736ad698
* src/paho-mqtt-c.mk: update to v1.3.12
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
6 $(PKG)_VERSION := 1.3.12 |
9d89736ad698
* src/paho-mqtt-c.mk: update to v1.3.12
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
7 $(PKG)_CHECKSUM := 34dc18d5df21d816276875da2fde314569865e14 |
6268 | 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 | |
6510
4b8764444acb
Create common github call define and start using it
John Donoghue <john.donoghue@ieee.org>
parents:
6435
diff
changeset
|
16 $(call GITHUB_PKG_UPDATE,eclipse,paho.mqtt.c,v) |
6268 | 17 endef |
18 | |
19 define $(PKG)_BUILD | |
20 cd '$(1)' && cmake \ | |
21 $($(PKG)_CMAKE_FLAGS) \ | |
22 $(CMAKE_CCACHE_FLAGS) \ | |
23 $(if $(BUILD_SHARED),-DPAHO_BUILD_SHARED=ON -DPAHO_BUILD_STATIC=OFF,-DPAHO_BUILD_SHARED=OFF -DPAHO_BUILD_STATIC=ON) \ | |
24 -DPAHO_BUILD_DOCUMENTATION=OFF \ | |
25 -DPAHO_ENABLE_TESTING=OFF \ | |
26 -DPAHO_BUILD_SAMPLES=OFF \ | |
27 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ | |
28 . | |
29 | |
30 $(MAKE) -C '$(1)' -j '$(JOBS)' VERBOSE=1 | |
31 $(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
|
32 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
|
33 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
|
34 fi |
6268 | 35 endef |