[Midnightbsd-cvs] mports [18908] trunk/devel: add json cpp lib

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat May 9 18:44:54 EDT 2015


Revision: 18908
          http://svnweb.midnightbsd.org/mports/?rev=18908
Author:   laffer1
Date:     2015-05-09 18:44:54 -0400 (Sat, 09 May 2015)
Log Message:
-----------
add json cpp lib

Modified Paths:
--------------
    trunk/devel/Makefile
    trunk/devel/google-perftools/Makefile

Added Paths:
-----------
    trunk/devel/jsoncpp/
    trunk/devel/jsoncpp/Makefile
    trunk/devel/jsoncpp/distinfo
    trunk/devel/jsoncpp/files/
    trunk/devel/jsoncpp/files/patch-SConstruct
    trunk/devel/jsoncpp/pkg-descr
    trunk/devel/jsoncpp/pkg-plist

Modified: trunk/devel/Makefile
===================================================================
--- trunk/devel/Makefile	2015-05-09 22:43:26 UTC (rev 18907)
+++ trunk/devel/Makefile	2015-05-09 22:44:54 UTC (rev 18908)
@@ -128,6 +128,7 @@
 SUBDIR += jenkins
 SUBDIR += json-c
 SUBDIR += json-glib
+SUBDIR += jsoncpp
 SUBDIR += judy
 SUBDIR += kBuild
 SUBDIR += lemon

Modified: trunk/devel/google-perftools/Makefile
===================================================================
--- trunk/devel/google-perftools/Makefile	2015-05-09 22:43:26 UTC (rev 18907)
+++ trunk/devel/google-perftools/Makefile	2015-05-09 22:44:54 UTC (rev 18908)
@@ -15,7 +15,7 @@
 
 USES=		pathfix
 GNU_CONFIGURE=	yes
-CONFIGURE_TARGET=	i386-portbld-freebsd7.0
+CONFIGURE_TARGET=	i386-portbld-freebsd9.1
 USE_LDCONFIG=	yes
 
 DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}

Added: trunk/devel/jsoncpp/Makefile
===================================================================
--- trunk/devel/jsoncpp/Makefile	                        (rev 0)
+++ trunk/devel/jsoncpp/Makefile	2015-05-09 22:44:54 UTC (rev 18908)
@@ -0,0 +1,30 @@
+# $MidnightBSD$
+
+PORTNAME=	jsoncpp
+DISTVERSION=	0.6.0-rc2
+CATEGORIES=	devel
+MASTER_SITES=	SF/${PORTNAME}/jsoncpp/${DISTVERSION}
+DISTNAME=	jsoncpp-src-${DISTVERSION}
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	JSON reader and writer library for C++
+
+LICENSE=	mit
+
+USES=		dos2unix scons
+USE_LDCONFIG=	yes
+
+MAKE_ARGS=	platform=linux-gcc
+
+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} -sf libjsoncpp.so.0 libjsoncpp.so )
+
+.include <bsd.port.mk>


Property changes on: trunk/devel/jsoncpp/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/jsoncpp/distinfo
===================================================================
--- trunk/devel/jsoncpp/distinfo	                        (rev 0)
+++ trunk/devel/jsoncpp/distinfo	2015-05-09 22:44:54 UTC (rev 18908)
@@ -0,0 +1,2 @@
+SHA256 (jsoncpp-src-0.6.0-rc2.tar.gz) = d4d193d163f520b08b9155cba978615892ca1359d77e3fb261fce2f86d09b283
+SIZE (jsoncpp-src-0.6.0-rc2.tar.gz) = 117661


Property changes on: trunk/devel/jsoncpp/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/jsoncpp/files/patch-SConstruct
===================================================================
--- trunk/devel/jsoncpp/files/patch-SConstruct	                        (rev 0)
+++ trunk/devel/jsoncpp/files/patch-SConstruct	2015-05-09 22:44:54 UTC (rev 18908)
@@ -0,0 +1,28 @@
+--- SConstruct.orig	2014-12-02 06:28:17.000000000 +0300
++++ SConstruct	2014-12-02 06:28:31.000000000 +0300
+@@ -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', '')
+@@ -65,7 +65,7 @@
+ 	return vars
+ 	
+ 
+-env = Environment( ENV = make_environ_vars(),
++env = Environment( ENV = os.environ,
+                    toolpath = ['scons-tools'],
+                    tools=[] ) #, tools=['default'] )
+ 
+@@ -121,6 +121,7 @@
+     env.Tool( 'default' )
+     env.Append( LIBS = ['pthread'], CCFLAGS = "-Wall" )
+     env['SHARED_LIB_ENABLED'] = True
++    env['CXX'] = os.environ['CXX']
+ else:
+     print "UNSUPPORTED PLATFORM."
+     env.Exit(1)


Property changes on: trunk/devel/jsoncpp/files/patch-SConstruct
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/jsoncpp/pkg-descr
===================================================================
--- trunk/devel/jsoncpp/pkg-descr	                        (rev 0)
+++ trunk/devel/jsoncpp/pkg-descr	2015-05-09 22:44:54 UTC (rev 18908)
@@ -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/


Property changes on: trunk/devel/jsoncpp/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/jsoncpp/pkg-plist
===================================================================
--- trunk/devel/jsoncpp/pkg-plist	                        (rev 0)
+++ trunk/devel/jsoncpp/pkg-plist	2015-05-09 22:44:54 UTC (rev 18908)
@@ -0,0 +1,11 @@
+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


Property changes on: trunk/devel/jsoncpp/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list