Mercurial > mxe-octave
annotate src/paho-mqtt-c.mk @ 7207:9ed6500e56d3 default tip @
maint: Merge release to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 17 May 2024 20:16:41 +0200 |
parents | e22938526917 |
children |
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 := | |
6933
e22938526917
* src/paho-mqtt-c.mk: update to v1.3.13
John Donoghue <john.donoghue@ieee.org>
parents:
6610
diff
changeset
|
6 $(PKG)_VERSION := 1.3.13 |
e22938526917
* src/paho-mqtt-c.mk: update to v1.3.13
John Donoghue <john.donoghue@ieee.org>
parents:
6610
diff
changeset
|
7 $(PKG)_CHECKSUM := 97aef4fea0cf821660977ca898303a38ad92336f |
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 |