diff options
author | abs <abs@pkgsrc.org> | 2012-03-18 16:56:32 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2012-03-18 16:56:32 +0000 |
commit | fdd0a98550aa4d87dd83af75791f03d84a861019 (patch) | |
tree | 8e486de9f26c801a6e192c6b5ecafbcb9270ee28 /devel/yajl | |
parent | 333cdb02644587d0f4fe35e2c0dabd4897dec385 (diff) | |
download | pkgsrc-fdd0a98550aa4d87dd83af75791f03d84a861019.tar.gz |
Added devel/yajl version 2.0.1
Yet Another JSON Library. YAJL is a small event-driven (SAX-style) JSON parser
written in ANSI C, and a small validating JSON generator.
YAJL is released under the BSD license.
Diffstat (limited to 'devel/yajl')
-rw-r--r-- | devel/yajl/DESCR | 3 | ||||
-rw-r--r-- | devel/yajl/Makefile | 36 | ||||
-rw-r--r-- | devel/yajl/PLIST | 5 | ||||
-rw-r--r-- | devel/yajl/buildlink3.mk | 12 | ||||
-rw-r--r-- | devel/yajl/distinfo | 5 | ||||
-rw-r--r-- | devel/yajl/files/Makefile | 31 |
6 files changed, 92 insertions, 0 deletions
diff --git a/devel/yajl/DESCR b/devel/yajl/DESCR new file mode 100644 index 00000000000..8b12f08351c --- /dev/null +++ b/devel/yajl/DESCR @@ -0,0 +1,3 @@ +Yet Another JSON Library. YAJL is a small event-driven (SAX-style) JSON parser +written in ANSI C, and a small validating JSON generator. +YAJL is released under the BSD license. diff --git a/devel/yajl/Makefile b/devel/yajl/Makefile new file mode 100644 index 00000000000..a21004d0499 --- /dev/null +++ b/devel/yajl/Makefile @@ -0,0 +1,36 @@ +# $NetBSD: Makefile,v 1.1.1.1 2012/03/18 16:56:32 abs Exp $ + +DISTNAME= 2.0.1 +PKGNAME= yajl-${DISTNAME} +CATEGORIES= devel +MASTER_SITES= https://github.com/lloyd/yajl/tarball/ +DIST_SUBDIR= yajl +EXTRACT_SUFX= + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://lloyd.github.com/yajl/ +COMMENT= Small JSON library written in ANSI C +LICENSE= modified-bsd + +EXTRACT_CMD= ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} +# 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 + +WRKSRC= ${WRKDIR}/lloyd-yajl-f4b2b1a + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_LANGUAGES= c +USE_LIBTOOL= yes +USE_TOOLS+= tar + +MAKE_ENV+= MKDIR="${MKDIR}" +MAKE_ENV+= CP="${CP}" + +BUILD_DIRS= src + +post-extract: + ${CP} ${FILESDIR}/Makefile ${WRKSRC}/src/ + +.include "../../mk/bsd.pkg.mk" diff --git a/devel/yajl/PLIST b/devel/yajl/PLIST new file mode 100644 index 00000000000..273f1f975ce --- /dev/null +++ b/devel/yajl/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2012/03/18 16:56:32 abs Exp $ +include/yajl/yajl_common.h +include/yajl/yajl_gen.h +include/yajl/yajl_parse.h +lib/libyajl.la diff --git a/devel/yajl/buildlink3.mk b/devel/yajl/buildlink3.mk new file mode 100644 index 00000000000..f70bc7907a9 --- /dev/null +++ b/devel/yajl/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2012/03/18 16:56:32 abs Exp $ + +BUILDLINK_TREE+= yajl + +.if !defined(YAJL_BUILDLINK3_MK) +YAJL_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.yajl+= yajl>=1.0.9 +BUILDLINK_PKGSRCDIR.yajl?= ../../devel/yajl +.endif # YAJL_BUILDLINK3_MK + +BUILDLINK_TREE+= -yajl diff --git a/devel/yajl/distinfo b/devel/yajl/distinfo new file mode 100644 index 00000000000..e593d21db64 --- /dev/null +++ b/devel/yajl/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2012/03/18 16:56:32 abs Exp $ + +SHA1 (yajl/2.0.1) = 2734dcfe754e18927e5ad6d04324706f1ff71bec +RMD160 (yajl/2.0.1) = 305f928bc2ff01e20b9c362f3032de7f948fdcc1 +Size (yajl/2.0.1) = 82102 bytes diff --git a/devel/yajl/files/Makefile b/devel/yajl/files/Makefile new file mode 100644 index 00000000000..5ff63f1e599 --- /dev/null +++ b/devel/yajl/files/Makefile @@ -0,0 +1,31 @@ +YAJL_MAJOR= 1 +YAJL_MINOR= 0 +YAJL_MICRO= 9 + +SRCS= yajl.c yajl_lex.c yajl_parser.c yajl_buf.c \ + yajl_encode.c yajl_gen.c yajl_alloc.c + +HDRS= yajl_parser.h yajl_lex.h yajl_buf.h yajl_encode.h yajl_alloc.h + +PUB_HDRS= api/yajl_parse.h api/yajl_gen.h api/yajl_common.h + +headers: $(PUB_HDRS) + $(MKDIR) ../include/yajl + $(CP) -f $(PUB_HDRS) ../include/yajl + +.c.o: + $(LIBTOOL) --mode=compile --tag=CC $(CC) -c -I../include \ + -DYAJL_BUILD -DNDEBUG $(CFLAGS) $< -o $(@:.o=.lo) + +libyajl.la: $(SRCS:.c=.o) + $(LIBTOOL) --mode=link $(CC) -o $@ $(LDFLAGS) $(SRCS:.c=.lo) \ + -version-info $(YAJL_MAJOR):$(YAJL_MINOR) \ + -rpath $(PREFIX)/lib + +all: headers libyajl.la + +install: libyajl.la + $(MKDIR) $(DESTDIR)$(PREFIX)/lib + $(MKDIR) $(DESTDIR)$(PREFIX)/include/yajl + $(INSTALL) -m644 $(PUB_HDRS) $(DESTDIR)$(PREFIX)/include/yajl/ + $(LIBTOOL) --mode=install $(INSTALL) libyajl.la $(DESTDIR)$(PREFIX)/lib/ |