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
68
69
70
71
|
# -*-makefile-*-
#
# Copyright (C) 2009 by Michael Olbrich <m.olbrich@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_JSON_C) += json-c
#
# Paths and names
#
JSON_C_VERSION := 0.13-20171207
JSON_C_MD5 := 0cd2cca9bd869eacf3595ad3484135be
JSON_C := json-c-$(JSON_C_VERSION)
JSON_C_SUFFIX := tar.gz
JSON_C_URL := https://github.com/json-c/json-c/archive/$(JSON_C).$(JSON_C_SUFFIX)
JSON_C_SOURCE := $(SRCDIR)/$(JSON_C).$(JSON_C_SUFFIX)
JSON_C_DIR := $(BUILDDIR)/$(JSON_C)
JSON_C_LICENSE := MIT
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#
# autoconf
#
JSON_C_CONF_TOOL := autoconf
JSON_C_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
--disable-threading \
--disable-rdrand \
--disable-static
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/json-c.install:
@$(call targetinfo)
@$(call world/install, JSON_C)
@ln -sv json-c.pc $(JSON_C_PKGDIR)/usr/lib/pkgconfig/json.pc
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/json-c.targetinstall:
@$(call targetinfo)
@$(call install_init, json-c)
@$(call install_fixup, json-c,PRIORITY,optional)
@$(call install_fixup, json-c,SECTION,base)
@$(call install_fixup, json-c,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
@$(call install_fixup, json-c,DESCRIPTION,missing)
@$(call install_lib, json-c, 0, 0, 0644, libjson-c)
@$(call install_finish, json-c)
@$(call touch)
# vim: ft=make noet
|