# -*- 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 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 }