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
|
# -*-makefile-*-
#
# Copyright (C) 2016 by Bastian Stender <bst@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_JSON_GLIB) += json-glib
#
# Paths and names
#
JSON_GLIB_VERSION := 1.8.0
JSON_GLIB_MD5 := f1aac2b8a17fd68646653cc4d8426486
JSON_GLIB := json-glib-$(JSON_GLIB_VERSION)
JSON_GLIB_SUFFIX := tar.xz
JSON_GLIB_URL := $(call ptx/mirror, GNOME, json-glib/$(basename $(JSON_GLIB_VERSION))/$(JSON_GLIB).$(JSON_GLIB_SUFFIX))
JSON_GLIB_SOURCE := $(SRCDIR)/$(JSON_GLIB).$(JSON_GLIB_SUFFIX)
JSON_GLIB_DIR := $(BUILDDIR)/$(JSON_GLIB)
JSON_GLIB_LICENSE := LGPL-2.1-only
JSON_GLIB_LICENSE_FILES := \
file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#
# meson
#
JSON_GLIB_CONF_TOOL := meson
JSON_GLIB_CONF_OPT := \
$(CROSS_MESON_USR) \
-Dgtk_doc=disabled \
-Dintrospection=$(call ptx/endis, PTXCONF_JSON_GLIB_INTROSPECTION)d \
-Dman=false \
-Dnls=disabled \
-Dtests=false
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/json-glib.targetinstall:
@$(call targetinfo)
@$(call install_init, json-glib)
@$(call install_fixup, json-glib, PRIORITY, optional)
@$(call install_fixup, json-glib, SECTION, base)
@$(call install_fixup, json-glib, AUTHOR, "Bastian Stender <bst@pengutronix.de>")
@$(call install_fixup, json-glib, DESCRIPTION, \
"A library providing (de)serialization support for the JSON format.")
@$(call install_lib, json-glib, 0, 0, 0644, libjson-glib-1.0)
ifdef PTXCONF_JSON_GLIB_INTROSPECTION
@$(call install_copy, json-glib, 0, 0, 0644, -, \
/usr/lib/girepository-1.0/Json-1.0.typelib)
endif
@$(call install_finish, json-glib)
@$(call touch)
# vim: syntax=make
|