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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6268
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
1 # This file is part of MXE.
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
2 # See index.html for further information.
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
3
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
4 PKG := paho-mqtt-c
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
6 $(PKG)_VERSION := 1.3.10
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
7 $(PKG)_CHECKSUM := 60d38f73f65abc58e77700e5ead8169119bdd332
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
8 $(PKG)_SUBDIR := paho.mqtt.c-$($(PKG)_VERSION)
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
9 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
10 $(PKG)_URL := https://github.com/eclipse/paho.mqtt.c/archive/refs/tags/v$($(PKG)_VERSION).tar.gz
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
11 $(PKG)_DEPS :=
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
12
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
13 $(PKG)_CMAKE_FLAGS :=
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
14
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
15 define $(PKG)_UPDATE
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
16 $(WGET) -q -O- 'https://github.com/eclipse/paho.mqtt.c/tags' | \
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
17 $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | $(SORT) -V | \
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
18 tail -1
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
19 endef
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
20
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
21 define $(PKG)_BUILD
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
22 cd '$(1)' && cmake \
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
23 $($(PKG)_CMAKE_FLAGS) \
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
24 $(CMAKE_CCACHE_FLAGS) \
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
25 $(if $(BUILD_SHARED),-DPAHO_BUILD_SHARED=ON -DPAHO_BUILD_STATIC=OFF,-DPAHO_BUILD_SHARED=OFF -DPAHO_BUILD_STATIC=ON) \
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
26 -DPAHO_BUILD_DOCUMENTATION=OFF \
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
27 -DPAHO_ENABLE_TESTING=OFF \
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
28 -DPAHO_BUILD_SAMPLES=OFF \
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
29 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
30 .
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
31
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
32 $(MAKE) -C '$(1)' -j '$(JOBS)' VERBOSE=1
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
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
0cb39c399ed8 Add paha-mqtt-c
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
37 endef