[111881] trunk/dports/devel
ryandesign at macports.org
ryandesign at macports.org
Fri Oct 4 14:56:31 PDT 2013
Revision: 111881
https://trac.macports.org/changeset/111881
Author: ryandesign at macports.org
Date: 2013-10-04 14:56:31 -0700 (Fri, 04 Oct 2013)
Log Message:
-----------
jsoncpp: new port, version 0.6.0-rc2 (#40675)
Added Paths:
-----------
trunk/dports/devel/jsoncpp/
trunk/dports/devel/jsoncpp/Portfile
trunk/dports/devel/jsoncpp/files/
trunk/dports/devel/jsoncpp/files/patch-SConstruct.diff
Added: trunk/dports/devel/jsoncpp/Portfile
===================================================================
--- trunk/dports/devel/jsoncpp/Portfile (rev 0)
+++ trunk/dports/devel/jsoncpp/Portfile 2013-10-04 21:56:31 UTC (rev 111881)
@@ -0,0 +1,48 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name jsoncpp
+conflicts json-c
+version 0.6.0-rc2
+categories devel
+platforms darwin
+maintainers gmail.com:felipou
+license MIT
+
+description JSON C++ library
+
+long_description JSON data format manipulation C++ library
+
+homepage http://jsoncpp.sourceforge.net/
+master_sites sourceforge:project/jsoncpp/jsoncpp/${version}
+distname jsoncpp-src-${version}
+
+checksums rmd160 654edf842aff368254c015ffa9a7bab6467b11bd \
+ sha256 d4d193d163f520b08b9155cba978615892ca1359d77e3fb261fce2f86d09b283
+
+depends_build-append port:scons
+
+patchfiles patch-SConstruct.diff
+
+post-patch {
+ reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/SConstruct
+}
+
+use_configure no
+
+build.cmd ${prefix}/bin/scons
+build.target
+build.args platform=darwin
+
+destroot {
+ xinstall -m 755 ${worksrcpath}/libs/darwin/libjson_darwin_libmt.dylib ${destroot}${prefix}/lib
+ xinstall -m 644 ${worksrcpath}/libs/darwin/libjson_darwin_libmt.a ${destroot}${prefix}/lib
+
+ ln -s libjson_darwin_libmt.dylib ${destroot}${prefix}/lib/libjsoncpp.dylib
+ ln -s libjson_darwin_libmt.a ${destroot}${prefix}/lib/libjsoncpp.a
+
+ xinstall -d -m 755 ${destroot}${prefix}/include/json
+ eval xinstall -m 644 [glob ${worksrcpath}/include/json/*] ${destroot}${prefix}/include/json
+}
Property changes on: trunk/dports/devel/jsoncpp/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/devel/jsoncpp/files/patch-SConstruct.diff
===================================================================
--- trunk/dports/devel/jsoncpp/files/patch-SConstruct.diff (rev 0)
+++ trunk/dports/devel/jsoncpp/files/patch-SConstruct.diff 2013-10-04 21:56:31 UTC (rev 111881)
@@ -0,0 +1,22 @@
+--- SConstruct.orig 2013-10-04 16:19:55.000000000 -0300
++++ SConstruct 2013-10-04 18:29:34.000000000 -0300
+@@ -27,7 +27,6 @@
+ CXX = 'g++' # not quite right, but env is not yet available.
+ import commands
+ version = commands.getoutput('%s -dumpversion' %CXX)
+- platform = 'linux-gcc-%s' %version
+ print "Using platform '%s'" %platform
+ LD_LIBRARY_PATH = os.environ.get('LD_LIBRARY_PATH', '')
+ LD_LIBRARY_PATH = "%s:libs/%s" %(LD_LIBRARY_PATH, platform)
+@@ -121,6 +120,11 @@
+ env.Tool( 'default' )
+ env.Append( LIBS = ['pthread'], CCFLAGS = "-Wall" )
+ env['SHARED_LIB_ENABLED'] = True
++elif platform.startswith('darwin'):
++ env.Tool( 'default' )
++ env.Append( CCFLAGS = "-Wall" )
++ env['SHARED_LIB_ENABLED'] = True
++ env['SHLINKFLAGS'] = '-dynamiclib -install_name "@@PREFIX@@/lib/libjsoncpp.dylib"'
+ else:
+ print "UNSUPPORTED PLATFORM."
+ env.Exit(1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131004/224edaf1/attachment.html>
More information about the macports-changes
mailing list