From 0c9f5c2ff9f9962c4764216df4a70835009d6606 Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Sat, 24 Jun 2006 10:04:04 +0000 Subject: [PATCH] Add json-c 0.6, a JSON (Javascript Object Notation) implementation in C. PR: ports/99391 Submitted by: gno_at_yahoo-inc.com --- devel/Makefile | 1 + devel/json-c/Makefile | 22 ++++++++++++++++++++++ devel/json-c/distinfo | 3 +++ devel/json-c/files/patch-Makefile.in | 16 ++++++++++++++++ devel/json-c/patch-Makefile.am | 8 ++++++++ devel/json-c/pkg-descr | 5 +++++ devel/json-c/pkg-plist | 14 ++++++++++++++ 7 files changed, 69 insertions(+) create mode 100644 devel/json-c/Makefile create mode 100644 devel/json-c/distinfo create mode 100644 devel/json-c/files/patch-Makefile.in create mode 100644 devel/json-c/patch-Makefile.am create mode 100644 devel/json-c/pkg-descr create mode 100644 devel/json-c/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index a631295b18d5..e8cc4d44ae9b 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -434,6 +434,7 @@ SUBDIR += jep SUBDIR += jrtplib SUBDIR += jsap + SUBDIR += json-c SUBDIR += jude-community SUBDIR += judy SUBDIR += kaptain diff --git a/devel/json-c/Makefile b/devel/json-c/Makefile new file mode 100644 index 000000000000..2f0340e9d2c4 --- /dev/null +++ b/devel/json-c/Makefile @@ -0,0 +1,22 @@ +# New ports collection makefile for: json-c +# Date created: June 23 2006 +# Whom: gno@yahoo-inc.com +# +# $FreeBSD$ +# + +PORTNAME= json-c +PORTVERSION= 0.6 +CATEGORIES= devel +MASTER_SITES= http://oss.metaparadigm.com/json-c/ + +MAINTAINER= gno@yahoo-inc.com +COMMENT= A JSON (Javascript Object Notation) implementation in C + +INSTALLS_SHLIB= yes +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_GNOME= gnometarget +#USE_AUTOTOOLS= automake:14 + +.include diff --git a/devel/json-c/distinfo b/devel/json-c/distinfo new file mode 100644 index 000000000000..3837f551af5f --- /dev/null +++ b/devel/json-c/distinfo @@ -0,0 +1,3 @@ +MD5 (json-c-0.6.tar.gz) = 2d8b899aeeebbbe68158d25adf8a4f1e +SHA256 (json-c-0.6.tar.gz) = 915ee6c4b8f1ffd5313d990875cd44e5e7092a51de259707daca797fd5c42b46 +SIZE (json-c-0.6.tar.gz) = 320050 diff --git a/devel/json-c/files/patch-Makefile.in b/devel/json-c/files/patch-Makefile.in new file mode 100644 index 000000000000..d3489fbced55 --- /dev/null +++ b/devel/json-c/files/patch-Makefile.in @@ -0,0 +1,16 @@ +--- Makefile.in.orig Sat Jun 24 18:00:48 2006 ++++ Makefile.in Sat Jun 24 18:01:16 2006 +@@ -85,11 +85,11 @@ + STRIP = @STRIP@ + VERSION = @VERSION@ + +-CFLAGS = -Wall -std=gnu99 -D_GNU_SOURCE -D_REENTRANT ++CFLAGS = -Wall -D_GNU_SOURCE -D_REENTRANT + + lib_LTLIBRARIES = libjson.la + +-pkgconfigdir = $(libdir)/pkgconfig ++pkgconfigdir = $(prefix)/libdata/pkgconfig + pkgconfig_DATA = json.pc + + libjsonincludedir = $(includedir)/json diff --git a/devel/json-c/patch-Makefile.am b/devel/json-c/patch-Makefile.am new file mode 100644 index 000000000000..b1a34caddc2b --- /dev/null +++ b/devel/json-c/patch-Makefile.am @@ -0,0 +1,8 @@ +--- Makefile.am.orig Mon Jun 12 12:17:41 2006 ++++ Makefile.am Mon Jun 12 12:17:52 2006 +@@ -1,4 +1,4 @@ +-CFLAGS = -Wall -std=gnu99 -D_GNU_SOURCE -D_REENTRANT ++CFLAGS = -Wall -D_GNU_SOURCE -D_REENTRANT + + lib_LTLIBRARIES = libjson.la + diff --git a/devel/json-c/pkg-descr b/devel/json-c/pkg-descr new file mode 100644 index 000000000000..e9d89056c617 --- /dev/null +++ b/devel/json-c/pkg-descr @@ -0,0 +1,5 @@ +This is a port of json-c, an implementation of json in C. Json, JavaScript +Object Notation is a lightweight data exchange format and a subset of the +JavaScript programming language. + +WWW: http://oss.metaparadigm.com/json-c/ diff --git a/devel/json-c/pkg-plist b/devel/json-c/pkg-plist new file mode 100644 index 000000000000..d19ca11ebe82 --- /dev/null +++ b/devel/json-c/pkg-plist @@ -0,0 +1,14 @@ +lib/libjson.a +lib/libjson.la +lib/libjson.so +lib/libjson.so.0 +include/json/arraylist.h +include/json/bits.h +include/json/debug.h +include/json/json.h +include/json/json_object.h +include/json/json_tokener.h +include/json/json_util.h +include/json/linkhash.h +libdata/pkgconfig/json.pc +@dirrm include/json