# Buildsheet autogenerated by ravenadm tool -- Do not edit.

NAMEBASE=		json-c
VERSION=		0.18
KEYWORDS=		devel
VARIANTS=		std
SDESC[std]=		JSON implementation in C
HOMEPAGE=		https://github.com/json-c/json-c/wiki
CONTACT=		nobody

DOWNLOAD_GROUPS=	main
SITES[main]=		https://s3.amazonaws.com/json-c_releases/releases/
DISTFILE[1]=		json-c-0.18.tar.gz:main
DF_INDEX=		1
SPKGS[std]=		set
			primary
			dev
			docs

OPTIONS_AVAILABLE=	none
OPTIONS_STANDARD=	none

BUILD_DEPENDS=		doxygen:primary:std

USES=			cpe cmake pkgconfig

LICENSE=		MIT:primary
LICENSE_FILE=		MIT:{{WRKSRC}}/COPYING
LICENSE_SCHEME=		solo

FPC_EQUIVALENT=		devel/json-c

BUILD_TARGET=		all doc

SOVERSION=		5.4.0

CMAKE_ARGS=		-DBUILD_SHARED_LIBS:BOOL=ON
			-DDISABLE_WERROR:BOOL=ON
			-DCMAKE_POLICY_VERSION_MINIMUM=3.5

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libjson-c.so
	# install our PIC library
	${INSTALL_DATA} ${WRKDIR}/.build/CMakeFiles/json-c.dir/libjson-c_pic.a\
		${STAGEDIR}${PREFIX}/lib/
	# install the documentation
	${MKDIR} ${STAGEDIR}${STD_DOCDIR}
	(cd ${INSTALL_WRKSRC}/doc/html && \
		${COPYTREE_SHARE} "*" ${STAGEDIR}${STD_DOCDIR})

post-build:
	# assemble PIC library
	(cd ${WRKDIR}/.build/CMakeFiles/json-c.dir &&\
	 ${AR} -crv libjson-c_pic.a *.o &&\
	 ranlib libjson-c_pic.a)

[FILE:182:descriptions/desc.primary]
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.


[FILE:97:distinfo]
876ab046479166b869afc6896d288183bbc0e5843f141200c677b3e8dfb11724       401788 json-c-0.18.tar.gz


[FILE:59:manifests/plist.primary]
lib/
 libjson-c.so.%%SOMAJOR%%
 libjson-c.so.%%SOVERSION%%


[FILE:410:manifests/plist.dev]
include/json-c/
 arraylist.h
 debug.h
 json.h
 json_c_version.h
 json_config.h
 json_inttypes.h
 json_object.h
 json_object_iterator.h
 json_patch.h
 json_pointer.h
 json_tokener.h
 json_types.h
 json_util.h
 json_visit.h
 linkhash.h
 printbuf.h
lib/
 libjson-c.a
 libjson-c.so
 libjson-c_pic.a
lib/cmake/json-c/
 json-c-config.cmake
 json-c-targets-release.cmake
 json-c-targets.cmake
lib/pkgconfig/json-c.pc


[FILE:2001:manifests/plist.docs]
share/doc/json-c/
 README_8md.html
 annotated.html
 arraylist_8h.html
 bc_s.png
 bc_sd.png
 classes.html
 clipboard.js
 closed.png
 deprecated.html
 dir_fbe60cddb9111572c439fb84fb497434.html
 doc.svg
 docd.svg
 doxygen.css
 doxygen.svg
 doxygen_crawl.html
 dynsections.js
 files.html
 folderclosed.svg
 folderclosedd.svg
 folderopen.svg
 folderopend.svg
 functions.html
 functions_vars.html
 globals.html
 globals_defs.html
 globals_enum.html
 globals_eval.html
 globals_func.html
 globals_i.html
 globals_j.html
 globals_l.html
 globals_p.html
 globals_s.html
 globals_type.html
 globals_u.html
 globals_vars.html
 index.html
 issues__closed__for__0_813_8md.html
 issues__closed__for__0_814_8md.html
 issues__closed__for__0_815_8md.html
 issues__closed__for__0_816_8md.html
 issues__closed__for__0_817_8md.html
 issues__closed__for__0_818_8md.html
 jquery.js
 json_8h.html
 json__c__version_8h.html
 json__inttypes_8h.html
 json__object_8h.html
 json__object__iterator_8h.html
 json__patch_8h.html
 json__pointer_8h.html
 json__pointer__private_8h.html
 json__tokener_8h.html
 json__types_8h.html
 json__util_8h.html
 json__visit_8h.html
 linkhash_8h.html
 md_issues__closed__for__0_813.html
 md_issues__closed__for__0_814.html
 md_issues__closed__for__0_815.html
 md_issues__closed__for__0_816.html
 md_issues__closed__for__0_817.html
 md_issues__closed__for__0_818.html
 menu.js
 menudata.js
 minus.svg
 minusd.svg
 nav_f.png
 nav_fd.png
 nav_g.png
 nav_h.png
 nav_hd.png
 navtree.css
 open.png
 pages.html
 plus.svg
 plusd.svg
 printbuf_8h.html
 resize.js
 splitbar.png
 splitbard.png
 structarray__list.html
 structjson__object__iter.html
 structjson__object__iterator.html
 structjson__patch__error.html
 structjson__pointer__get__result.html
 structjson__tokener.html
 structjson__tokener__srec.html
 structlh__entry.html
 structlh__table.html
 structprintbuf.html
 sync_off.png
 sync_on.png
 tab_a.png
 tab_ad.png
 tab_b.png
 tab_bd.png
 tab_h.png
 tab_hd.png
 tab_s.png
 tab_sd.png
 tabs.css