diff options
author | ryoon <ryoon@pkgsrc.org> | 2012-10-11 15:40:40 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2012-10-11 15:40:40 +0000 |
commit | d447792847af2784f1a675efa5bd88fd493bb6a5 (patch) | |
tree | 3290364829822b4be7f4b510a8bce931eaa828d8 /textproc/json-c | |
parent | 1413dbe804c38f2346389178fa6953f5b7954fcd (diff) | |
download | pkgsrc-d447792847af2784f1a675efa5bd88fd493bb6a5.tar.gz |
Import json-c-0.10 as textproc/json-c.
JSON-C implements a reference counting object model that allows
you to easily construct JSON objects in C, output them as JSON
formatted strings and parse JSON formatted strings back into the
C representation of JSON objects.
Diffstat (limited to 'textproc/json-c')
-rw-r--r-- | textproc/json-c/DESCR | 4 | ||||
-rw-r--r-- | textproc/json-c/Makefile | 23 | ||||
-rw-r--r-- | textproc/json-c/PLIST | 16 | ||||
-rw-r--r-- | textproc/json-c/buildlink3.mk | 12 | ||||
-rw-r--r-- | textproc/json-c/distinfo | 6 | ||||
-rw-r--r-- | textproc/json-c/patches/patch-Makefile.in | 14 |
6 files changed, 75 insertions, 0 deletions
diff --git a/textproc/json-c/DESCR b/textproc/json-c/DESCR new file mode 100644 index 00000000000..694d7d6c7fc --- /dev/null +++ b/textproc/json-c/DESCR @@ -0,0 +1,4 @@ +JSON-C implements a reference counting object model that allows +you to easily construct JSON objects in C, output them as JSON +formatted strings and parse JSON formatted strings back into the +C representation of JSON objects. diff --git a/textproc/json-c/Makefile b/textproc/json-c/Makefile new file mode 100644 index 00000000000..35c9f61b1ff --- /dev/null +++ b/textproc/json-c/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1 2012/10/11 15:40:40 ryoon Exp $ +# + +DISTNAME= json-c-0.10 +CATEGORIES= textproc +MASTER_SITES= https://github.com/downloads/json-c/json-c/ + +MAINTAINER= ryoon@NetBSD.org +HOMEPAGE= https://github.com/json-c/json-c/wiki +COMMENT= JSON library in C +LICENSE= mit + +# Force using "curl" for fetching the distribution file. It is only available +# over HTTPS and "curl" is the only fetch program which always supports HTTPS. +FETCH_USING= curl + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config + +PKGCONFIG_OVERRIDE+= json.pc.in + +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/json-c/PLIST b/textproc/json-c/PLIST new file mode 100644 index 00000000000..3bf62f3e35e --- /dev/null +++ b/textproc/json-c/PLIST @@ -0,0 +1,16 @@ +@comment $NetBSD: PLIST,v 1.1 2012/10/11 15:40:40 ryoon Exp $ +include/json/arraylist.h +include/json/bits.h +include/json/debug.h +include/json/json.h +include/json/json_config.h +include/json/json_inttypes.h +include/json/json_object.h +include/json/json_object_iterator.h +include/json/json_object_private.h +include/json/json_tokener.h +include/json/json_util.h +include/json/linkhash.h +include/json/printbuf.h +lib/libjson.la +lib/pkgconfig/json.pc diff --git a/textproc/json-c/buildlink3.mk b/textproc/json-c/buildlink3.mk new file mode 100644 index 00000000000..c743a9bbdc4 --- /dev/null +++ b/textproc/json-c/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1 2012/10/11 15:40:40 ryoon Exp $ + +BUILDLINK_TREE+= json-c + +.if !defined(JSON_C_BUILDLINK3_MK) +JSON_C_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.json-c+= json-c>=0.10 +BUILDLINK_PKGSRCDIR.json-c?= ../../textproc/json-c +.endif # JSON_C_BUILDLINK3_MK + +BUILDLINK_TREE+= -json-c diff --git a/textproc/json-c/distinfo b/textproc/json-c/distinfo new file mode 100644 index 00000000000..a6722cbf7fa --- /dev/null +++ b/textproc/json-c/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2012/10/11 15:40:40 ryoon Exp $ + +SHA1 (json-c-0.10.tar.gz) = f90f643c8455da21d57b3e8866868a944a93c596 +RMD160 (json-c-0.10.tar.gz) = 2ad4ce9a41d87f30a0dcc15a89246353e8edd360 +Size (json-c-0.10.tar.gz) = 385812 bytes +SHA1 (patch-Makefile.in) = 6dfebc80c89f1122f3299102c13fdce5618ae4c8 diff --git a/textproc/json-c/patches/patch-Makefile.in b/textproc/json-c/patches/patch-Makefile.in new file mode 100644 index 00000000000..0a272115756 --- /dev/null +++ b/textproc/json-c/patches/patch-Makefile.in @@ -0,0 +1,14 @@ +$NetBSD: patch-Makefile.in,v 1.1 2012/10/11 15:40:40 ryoon Exp $ + +* From https://github.com/json-c/json-c/commit/4154c55edae6f6b34d6ef4fcc331055fdf8e1a23#Makefile.am + +--- Makefile.in.orig 2012-05-31 02:31:35.000000000 +0000 ++++ Makefile.in +@@ -278,6 +278,7 @@ libjsoninclude_HEADERS = \ + json_config.h \ + json_inttypes.h \ + json_object.h \ ++ json_object_iterator.h \ + json_object_private.h \ + json_tokener.h \ + json_util.h \ |