summaryrefslogtreecommitdiffstats
path: root/rules/paho-mqtt-c.make
blob: 4eaaa413460a18ad64042b963f3fd4aa32004b81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# -*-makefile-*-
#
# Copyright (C) 2019 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_PAHO_MQTT_C) += paho-mqtt-c

#
# Paths and names
#
PAHO_MQTT_C_VERSION	:= 1.3.12
PAHO_MQTT_C_MD5		:= cc71dd5243d9fd2db6b0369be661a5c9
PAHO_MQTT_C		:= paho.mqtt.c-$(PAHO_MQTT_C_VERSION)
PAHO_MQTT_C_SUFFIX	:= tar.gz
PAHO_MQTT_C_URL		:= https://github.com/eclipse/paho.mqtt.c/archive/v$(PAHO_MQTT_C_VERSION).$(PAHO_MQTT_C_SUFFIX)
PAHO_MQTT_C_SOURCE	:= $(SRCDIR)/$(PAHO_MQTT_C).$(PAHO_MQTT_C_SUFFIX)
PAHO_MQTT_C_DIR		:= $(BUILDDIR)/$(PAHO_MQTT_C)
# "Eclipse Distribution License - v 1.0" is in fact BSD-3-Clause
PAHO_MQTT_C_LICENSE	:= EPL-2.0 AND BSD-3-Clause
PAHO_MQTT_C_LICENSE_FILES := \
	file://LICENSE;md5=fd3b896dadaeec3410d753ffaeadcfac \
	file://epl-v20;md5=d9fc0efef5228704e7f5b37f27192723 \
	file://edl-v10;md5=3adfcc70f5aeb7a44f3f9b495aa1fbf3

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

PAHO_MQTT_C_CONF_TOOL	:= cmake
PAHO_MQTT_C_CONF_OPT	:= \
	$(CROSS_CMAKE_USR) \
	-DPAHO_WITH_SSL=TRUE \
	-DOPENSSL_SEARCH_PATH=$(PTXDIST_SYSROOT_TARGET)/usr

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/paho-mqtt-c.targetinstall:
	@$(call targetinfo)

	@$(call install_init, paho-mqtt-c)
	@$(call install_fixup, paho-mqtt-c,PRIORITY,optional)
	@$(call install_fixup, paho-mqtt-c,SECTION,base)
	@$(call install_fixup, paho-mqtt-c,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
	@$(call install_fixup, paho-mqtt-c,DESCRIPTION,missing)

#	# async library without ssh
	@$(call install_lib, paho-mqtt-c, 0, 0, 0644, libpaho-mqtt3a)
#	# async library with ssh
	@$(call install_lib, paho-mqtt-c, 0, 0, 0644, libpaho-mqtt3as)
#	# client library without ssl
	@$(call install_lib, paho-mqtt-c, 0, 0, 0644, libpaho-mqtt3c)
#	# client library with ssl
	@$(call install_lib, paho-mqtt-c, 0, 0, 0644, libpaho-mqtt3cs)

	@$(call install_finish, paho-mqtt-c)

	@$(call touch)

# vim: syntax=make