1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= JSON reader and writer library for C++
8 HOMEPAGE= https://github.com/open-source-parsers/jsoncpp
12 SITES[main]= GITHUB/open-source-parsers:jsoncpp:1.9.4
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
23 LICENSE_FILE= MIT:{{WRKSRC}}/LICENSE
26 FPC_EQUIVALENT= devel/jsoncpp
29 SUB_FILES= Makefile.BSD
30 SUB_LIST= SHLIB_MAJOR=24
34 ${MV} ${WRKDIR}/Makefile.BSD ${WRKSRC}/Makefile
36 [FILE:412:descriptions/desc.single]
37 JSON is a lightweight data-interchange format. It can represent numbers,
38 strings, ordered sequences of values, and collections of name/value pairs.
40 JsonCpp is a C++ library that allows manipulating JSON values, including
41 serialization and deserialization to and from strings. It can also
42 preserve existing comment in unserialization/serialization steps, making
43 it a convenient format to store user input files.
47 e34a628a8142643b976c7233ef381457efad79468c67cb1ae0b83a33d7493999 214057 open-source-parsers-jsoncpp-1.9.4.tar.gz
50 [FILE:208:manifests/plist.single]
64 libjsoncpp.so.%%SOMAJOR%%
65 lib/pkgconfig/jsoncpp.pc
68 [FILE:1394:files/Makefile.BSD.in]
70 .SUFFIXES: .o .So .cpp
72 SRCS= src/lib_json/json_reader.cpp \
73 src/lib_json/json_value.cpp \
74 src/lib_json/json_writer.cpp
76 SOBJS= ${SRCS:R:S/$/.So/}
80 SHLIB_MAJOR= %%SHLIB_MAJOR%%
81 SHLIB_NAME= lib${LIB}.so.${SHLIB_MAJOR}
82 SHLIB_LINK= ${SHLIB_NAME:R}
83 CXXFLAGS+= -Iinclude \
84 -D_FILE_OFFSET_BITS=64 \
90 all: ${SHLIB_NAME} jsoncpp.pc
93 ${CXX} ${_${.IMPSRC:T}_FLAGS} ${PICFLAG} -DPIC ${SHARED_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
95 ${SHLIB_NAME}: ${SOBJS}
96 @echo building shared library ${SHLIB_NAME}
97 rm -f ${.TARGET} ${SHLIB_LINK}
98 ln -fs ${.TARGET} ${SHLIB_LINK}
99 ${CXX} ${LDFLAGS} -shared -o ${.TARGET} -Wl,-soname,${SHLIB_NAME} ${.ALLSRC}
101 jsoncpp.pc: pkg-config/jsoncpp.pc.in
103 -e 's|@CMAKE_INSTALL_PREFIX@|%%PREFIX%%|' \
104 -e 's|@libdir_for_pc_file@|%%PREFIX%%/lib|' \
105 -e 's|@includedir_for_pc_file@|%%PREFIX%%/include|' \
106 -e 's|@JSONCPP_VERSION@|%%PORTVERSION%%|' \
107 ${.ALLSRC} > ${.TARGET}
110 mkdir -p ${DESTDIR}%%PREFIX%%/lib/pkgconfig
111 mkdir -p ${DESTDIR}%%PREFIX%%/include/jsoncpp/json
112 ${BSD_INSTALL_DATA} include/json/*.h ${DESTDIR}%%PREFIX%%/include/jsoncpp/json/
113 ${BSD_INSTALL_DATA} jsoncpp.pc ${DESTDIR}%%PREFIX%%/lib/pkgconfig/
114 ${BSD_INSTALL_LIB} ${SHLIB_NAME} ${DESTDIR}%%PREFIX%%/lib
115 cp -RpP ${SHLIB_LINK} ${DESTDIR}%%PREFIX%%/lib