summaryrefslogtreecommitdiffstats
path: root/rules/jsoncpp.make
blob: 86630d765f956910d906d687435c5041eca452d3 (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
# -*-makefile-*-
#
# Copyright (C) 2019 by Florian Baeuerle <florian.baeuerle@allegion.com>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_JSONCPP) += jsoncpp

#
# Paths and names
#
JSONCPP_VERSION		:= 1.9.2
JSONCPP_MD5		:= e31da248a8765597d79e94cf304b70fe
JSONCPP			:= jsoncpp-$(JSONCPP_VERSION)
JSONCPP_SUFFIX		:= tar.gz
JSONCPP_URL		:= https://github.com/open-source-parsers/jsoncpp/archive/$(JSONCPP_VERSION).tar.gz
JSONCPP_SOURCE		:= $(SRCDIR)/jsoncpp-src-$(JSONCPP_VERSION).$(JSONCPP_SUFFIX)
JSONCPP_DIR		:= $(BUILDDIR)/$(JSONCPP)
JSONCPP_LICENSE		:= MIT
JSONCPP_LICENSE_FILES	:= file://LICENSE;md5=fa2a23dd1dc6c139f35105379d76df2b

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

JSONCPP_CONF_TOOL	:= meson
JSONCPP_CONF_OPT	:= \
	$(CROSS_MESON_USR)

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

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

	@$(call install_init, jsoncpp)
	@$(call install_fixup, jsoncpp,PRIORITY,optional)
	@$(call install_fixup, jsoncpp,SECTION,base)
	@$(call install_fixup, jsoncpp,AUTHOR,"Florian Baeuerle <florian.baeuerle@allegion.com>")
	@$(call install_fixup, jsoncpp,DESCRIPTION,missing)

	@$(call install_lib, jsoncpp, 0, 0, 0644, libjsoncpp)
	@$(call install_finish, jsoncpp)

	@$(call touch)

# vim: syntax=make