summaryrefslogtreecommitdiffstats
path: root/rules/json-glib.make
diff options
context:
space:
mode:
authorBastian Stender <bst@pengutronix.de>2016-07-21 15:04:17 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-08-12 14:46:33 +0200
commit37f46c3bacd8985198df26e80225f81c38bd3d86 (patch)
tree953e9ba88c7109c3d2ce3362aeb8ddab7a521dd1 /rules/json-glib.make
parent0d61da7cd13fa7a3c7d58f904bb9e69727d9d20c (diff)
downloadptxdist-37f46c3bacd8985198df26e80225f81c38bd3d86.tar.gz
ptxdist-37f46c3bacd8985198df26e80225f81c38bd3d86.tar.xz
json-glib: new package
Signed-off-by: Bastian Stender <bst@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/json-glib.make')
-rw-r--r--rules/json-glib.make72
1 files changed, 72 insertions, 0 deletions
diff --git a/rules/json-glib.make b/rules/json-glib.make
new file mode 100644
index 000000000..592c096e2
--- /dev/null
+++ b/rules/json-glib.make
@@ -0,0 +1,72 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Bastian Stender <bst@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_GLIB) += json-glib
+
+#
+# Paths and names
+#
+JSON_GLIB_VERSION := 1.2.0
+JSON_GLIB_MD5 := efe14b6b8e7aa95ee3240cc60627dc9f
+JSON_GLIB := json-glib-$(JSON_GLIB_VERSION)
+JSON_GLIB_SUFFIX := tar.xz
+JSON_GLIB_URL := http://ftp.gnome.org/pub/GNOME/sources/json-glib/1.2/$(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
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+JSON_GLIB_CONF_TOOL := autoconf
+JSON_GLIB_CONF_OPT := \
+ $(CROSS_AUTOCONF_USR) \
+ --disable-glibtest \
+ --enable-debug=minimum \
+ --disable-installed-tests \
+ --disable-always-build-tests \
+ --disable-gcov \
+ --disable-gtk-doc \
+ --disable-gtk-doc-html \
+ --disable-gtk-doc-pdf \
+ --disable-man \
+ --disable-nls \
+ --disable-rpath \
+ --$(call ptx/endis, PTXCONF_JSON_GLIB_INTROSPECTION)-introspection
+
+
+# ----------------------------------------------------------------------------
+# 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)
+
+ @$(call install_finish, json-glib)
+
+ @$(call touch)
+
+# vim: syntax=make