summaryrefslogtreecommitdiffstats
path: root/rules/open62541.make
blob: e08758579ef3efb7c66e29ad01223bf37e5930e0 (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
# -*-makefile-*-
#
# Copyright (C) 2018 by Robert Schwebel <r.schwebel@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_OPEN62541) += open62541

#
# Paths and names
#
OPEN62541_VERSION	:= 21e32dd9973096133a2fcf826809518e5fd0bdfc
OPEN62541_MD5		:= c1ce64483a898de2ce7175c02a3cf84e
OPEN62541		:= open62541-20190709-1
OPEN62541_SUFFIX	:= tar.gz
OPEN62541_URL		:= https://github.com/open62541/open62541/archive/$(OPEN62541_VERSION).tar.gz
OPEN62541_SOURCE	:= $(SRCDIR)/$(OPEN62541).$(OPEN62541_SUFFIX)
OPEN62541_DIR		:= $(BUILDDIR)/$(OPEN62541)
OPEN62541_LICENSE	:= MPL-2.0

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

OPEN62541_CONF_TOOL	:= cmake
OPEN62541_CONF_OPT	:= \
	$(CROSS_CMAKE_USR) \
	-DUA_BUILD_EXAMPLES=ON

# FIXME: add lots of additional configure switches

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

$(STATEDIR)/open62541.targetinstall:
	@$(call targetinfo)

	@$(call install_init, open62541)
	@$(call install_fixup, open62541,PRIORITY,optional)
	@$(call install_fixup, open62541,SECTION,base)
	@$(call install_fixup, open62541,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
	@$(call install_fixup, open62541,DESCRIPTION,missing)

	@$(call install_copy, open62541, 0, 0, 0755, \
		$(BUILDDIR)/$(OPEN62541)-build/bin/examples/client, \
		/usr/bin/open62541-client)

	@$(call install_finish, open62541)

	@$(call touch)

# vim: syntax=make