summaryrefslogtreecommitdiffstats
path: root/rules/sdbus-cpp.make
blob: 238030c31fe729085af936aadb83a1fed7e767b7 (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
# -*-makefile-*-
#
# Copyright (C) 2019 by Ladislav Michl <ladis@linux-mips.org>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_SDBUS_CPP) += sdbus-cpp

#
# Paths and names
#
SDBUS_CPP_VERSION	:= 1.0.0
SDBUS_CPP_MD5		:= cf53be4342605419ba8d60d261a89466
SDBUS_CPP		:= sdbus-cpp-$(SDBUS_CPP_VERSION)
SDBUS_CPP_SUFFIX	:= tar.gz
SDBUS_CPP_URL		:= https://github.com/Kistler-Group/sdbus-cpp/archive/v$(SDBUS_CPP_VERSION).$(SDBUS_CPP_SUFFIX)
SDBUS_CPP_SOURCE	:= $(SRCDIR)/$(SDBUS_CPP).$(SDBUS_CPP_SUFFIX)
SDBUS_CPP_DIR		:= $(BUILDDIR)/$(SDBUS_CPP)
SDBUS_CPP_LICENSE	:= LGPL-2.1-only

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

SDBUS_CPP_CONF_TOOL	:= cmake
SDBUS_CPP_CONF_OPT	:= \
	$(CROSS_CMAKE_USR) \
	-DBUILD_TESTS=OFF \
	-DBUILD_CODE_GEN=OFF \
	-DBUILD_DOC=OFF

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

$(STATEDIR)/sdbus-cpp.targetinstall:
	@$(call targetinfo)

	@$(call install_init, sdbus-cpp)
	@$(call install_fixup, sdbus-cpp, PRIORITY, optional)
	@$(call install_fixup, sdbus-cpp, SECTION, base)
	@$(call install_fixup, sdbus-cpp, AUTHOR, "Ladislav Michl <ladis@linux-mips.org>")
	@$(call install_fixup, sdbus-cpp, DESCRIPTION, \
		"D-Bus IPC C++ binding library built on top of sd-bus")

	@$(call install_lib, sdbus-cpp, 0, 0, 0644, libsdbus-c++)

	@$(call install_finish, sdbus-cpp)

	@$(call touch)

# vim: syntax=make