Changeset 147844 for trunk


Ignore:
Timestamp:
Apr 17, 2016, 7:59:03 PM (4 years ago)
Author:
g5pw@…
Message:

devel/jsoncpp: update to 1.7.2

  • Move upstream to github
  • use cmake build system
  • Closes #49372 and #40676 (maintainer timeout)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/jsoncpp/Portfile

    r120552 r147844  
    33
    44PortSystem          1.0
     5PortGroup           github 1.0
     6PortGroup           cmake 1.0
    57
    6 name                jsoncpp
    7 version             0.6.0-rc2
     8github.setup        open-source-parsers jsoncpp 1.7.2
    89categories          devel
    910platforms           darwin
     
    1516long_description    JSON data format manipulation C++ library
    1617
    17 homepage            http://jsoncpp.sourceforge.net/
    18 master_sites        sourceforge:project/jsoncpp/jsoncpp/${version}
    19 distname            jsoncpp-src-${version}
     18checksums           rmd160  e0a0258eca770e0eb1c3f904f534622054c8d446 \
     19                    sha256  8fac28db30874c265f36c80ba997ad9cc1a54298b6ebf050c45258d6a78cf401
    2020
    21 checksums           rmd160  654edf842aff368254c015ffa9a7bab6467b11bd \
    22                     sha256  d4d193d163f520b08b9155cba978615892ca1359d77e3fb261fce2f86d09b283
    23 
    24 depends_build-append port:scons
    25 
    26 patchfiles          patch-SConstruct.diff
    27 
    28 post-patch {
    29     reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/SConstruct
    30 }
    31 
    32 use_configure       no
    33 
    34 build.cmd           ${prefix}/bin/scons
    35 build.target
    36 build.args          platform=darwin
    37 
    38 destroot {
    39     xinstall -m 755 ${worksrcpath}/libs/darwin/libjson_darwin_libmt.dylib ${destroot}${prefix}/lib
    40     xinstall -m 644 ${worksrcpath}/libs/darwin/libjson_darwin_libmt.a ${destroot}${prefix}/lib
    41 
    42     ln -s libjson_darwin_libmt.dylib ${destroot}${prefix}/lib/libjsoncpp.dylib
    43     ln -s libjson_darwin_libmt.a ${destroot}${prefix}/lib/libjsoncpp.a
    44 
    45     xinstall -d -m 755 ${destroot}${prefix}/include/json
    46     eval xinstall -m 644 [glob ${worksrcpath}/include/json/*] ${destroot}${prefix}/include/json
    47 }
     21cmake.out_of_source yes
Note: See TracChangeset for help on using the changeset viewer.