mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 19:06:28 -04:00
- Add new port devel/jsoncpp
jsoncpp is an implementation of a JSON reader and writer in C++. PR: ports/185592 Submitted by: Johan Str?m <johan@stromnet.se>
This commit is contained in:
parent
caf68bc35b
commit
e3fd61c83f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340636
6 changed files with 67 additions and 0 deletions
|
@ -888,6 +888,7 @@
|
|||
SUBDIR += jsmin
|
||||
SUBDIR += json-c
|
||||
SUBDIR += json-glib
|
||||
SUBDIR += jsoncpp
|
||||
SUBDIR += jtag
|
||||
SUBDIR += judy
|
||||
SUBDIR += jwasm
|
||||
|
|
34
devel/jsoncpp/Makefile
Normal file
34
devel/jsoncpp/Makefile
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Created by: Johan Str??m <johna@stromnet.se>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= jsoncpp
|
||||
DISTVERSION= 0.6.0-rc2
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= SF/${PORTNAME}/jsoncpp/${DISTVERSION}
|
||||
DISTNAME= jsoncpp-src-${DISTVERSION}
|
||||
|
||||
MAINTAINER= johan@stromnet.se
|
||||
COMMENT= JSON reader and writer library for C++
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
USES= dos2unix scons
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
MAKE_ARGS= platform=linux-gcc
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|g++|${CXX}|' ${WRKSRC}/SConstruct
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/include/jsoncpp
|
||||
(cd ${WRKSRC}/include/ && ${COPYTREE_SHARE} json/ ${STAGEDIR}${PREFIX}/include/jsoncpp/)
|
||||
(cd ${WRKSRC}/libs/linux-gcc-FreeBSD/ && \
|
||||
${INSTALL_LIB} libjson_linux-gcc-FreeBSD_libmt.a \
|
||||
${STAGEDIR}${PREFIX}/lib/libjsoncpp.a)
|
||||
(cd ${WRKSRC}/libs/linux-gcc-FreeBSD/ && \
|
||||
${INSTALL_LIB} libjson_linux-gcc-FreeBSD_libmt.so \
|
||||
${STAGEDIR}${PREFIX}/lib/libjsoncpp.so.0)
|
||||
(cd ${STAGEDIR}${PREFIX}/lib/ && ${LN} -s libjsoncpp.so.0 libjsoncpp.so )
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/jsoncpp/distinfo
Normal file
2
devel/jsoncpp/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (jsoncpp-src-0.6.0-rc2.tar.gz) = d4d193d163f520b08b9155cba978615892ca1359d77e3fb261fce2f86d09b283
|
||||
SIZE (jsoncpp-src-0.6.0-rc2.tar.gz) = 117661
|
11
devel/jsoncpp/files/patch-SConstruct
Normal file
11
devel/jsoncpp/files/patch-SConstruct
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- ./SConstruct.orig 2014-01-21 02:29:19.000000000 -0200
|
||||
+++ ./SConstruct 2014-01-21 02:29:28.000000000 -0200
|
||||
@@ -26,7 +26,7 @@
|
||||
if platform == 'linux-gcc':
|
||||
CXX = 'g++' # not quite right, but env is not yet available.
|
||||
import commands
|
||||
- version = commands.getoutput('%s -dumpversion' %CXX)
|
||||
+ version = 'FreeBSD'
|
||||
platform = 'linux-gcc-%s' %version
|
||||
print "Using platform '%s'" %platform
|
||||
LD_LIBRARY_PATH = os.environ.get('LD_LIBRARY_PATH', '')
|
6
devel/jsoncpp/pkg-descr
Normal file
6
devel/jsoncpp/pkg-descr
Normal file
|
@ -0,0 +1,6 @@
|
|||
jsoncpp is an implementation of a JSON reader and writer in C++.
|
||||
JSON (JavaScript Object Notation) is a lightweight data-interchange format.
|
||||
It is easy for humans to read and write.
|
||||
It is easy for machines to parse and generate.
|
||||
|
||||
WWW: http://jsoncpp.sourceforge.net/
|
13
devel/jsoncpp/pkg-plist
Normal file
13
devel/jsoncpp/pkg-plist
Normal file
|
@ -0,0 +1,13 @@
|
|||
lib/libjsoncpp.so.0
|
||||
lib/libjsoncpp.so
|
||||
lib/libjsoncpp.a
|
||||
include/jsoncpp/json/writer.h
|
||||
include/jsoncpp/json/json.h
|
||||
include/jsoncpp/json/forwards.h
|
||||
include/jsoncpp/json/config.h
|
||||
include/jsoncpp/json/value.h
|
||||
include/jsoncpp/json/reader.h
|
||||
include/jsoncpp/json/features.h
|
||||
include/jsoncpp/json/autolink.h
|
||||
@dirrm include/jsoncpp/json
|
||||
@dirrm include/jsoncpp
|
Loading…
Add table
Reference in a new issue