summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2009-08-17 17:13:25 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2009-08-17 17:49:51 +0200
commit00c83032cd9abc2025daa67da8f7e0a1620ea6a3 (patch)
treea2ebe5ee2216489723d2374f1b9da2dcb9d29bf0
parent0013d2caed647c7f5ab354856087964b2d8bf1aa (diff)
downloadptxdist-00c83032cd9abc2025daa67da8f7e0a1620ea6a3.tar.gz
ptxdist-00c83032cd9abc2025daa67da8f7e0a1620ea6a3.tar.xz
[json-c] add json-c a C library to access JSON data
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/json-c.in7
-rw-r--r--rules/json-c.make83
2 files changed, 90 insertions, 0 deletions
diff --git a/rules/json-c.in b/rules/json-c.in
new file mode 100644
index 000000000..ca4f1d500
--- /dev/null
+++ b/rules/json-c.in
@@ -0,0 +1,7 @@
+## SECTION=system_libraries
+
+config JSON_C
+ tristate
+ prompt "json-c"
+ help
+ json bindings in C
diff --git a/rules/json-c.make b/rules/json-c.make
new file mode 100644
index 000000000..d112be73e
--- /dev/null
+++ b/rules/json-c.make
@@ -0,0 +1,83 @@
+# -*-makefile-*-
+# $Id: template-make 9053 2008-11-03 10:58:48Z wsa $
+#
+# 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.9
+JSON_C := json-c-$(JSON_C_VERSION)
+JSON_C_SUFFIX := tar.gz
+JSON_C_URL := http://oss.metaparadigm.com/json-c/$(JSON_C).$(JSON_C_SUFFIX)
+JSON_C_SOURCE := $(SRCDIR)/$(JSON_C).$(JSON_C_SUFFIX)
+JSON_C_DIR := $(BUILDDIR)/$(JSON_C)
+JSON_C_PKGDIR := $(PKGDIR)/$(JSON_C)
+JSON_C_LICENSE := MIT
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(JSON_C_SOURCE):
+ @$(call targetinfo)
+ @$(call get, JSON_C)
+
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+JSON_C_PATH := PATH=$(CROSS_PATH)
+JSON_C_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+JSON_C_AUTOCONF := $(CROSS_AUTOCONF_USR)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/json-c.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, json-c)
+ @$(call install_fixup, json-c,PACKAGE,json-c)
+ @$(call install_fixup, json-c,PRIORITY,optional)
+ @$(call install_fixup, json-c,VERSION,$(JSON_C_VERSION))
+ @$(call install_fixup, json-c,SECTION,base)
+ @$(call install_fixup, json-c,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
+ @$(call install_fixup, json-c,DEPENDS,)
+ @$(call install_fixup, json-c,DESCRIPTION,missing)
+
+ @$(call install_copy, json-c, 0, 0, 0644, -, /usr/lib/libjson.so.0.0.1)
+ @$(call install_link, json-c, libjson.so.0.0.1, /usr/lib/libjson.so.0)
+ @$(call install_link, json-c, libjson.so.0.0.1, /usr/lib/libjson.so)
+
+ @$(call install_finish, json-c)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+json-c_clean:
+ rm -rf $(STATEDIR)/json-c.*
+ rm -rf $(PKGDIR)/json-c_*
+ rm -rf $(JSON_C_DIR)
+
+# vim: syntax=make