Ticket #41226: Portfile-gmt4.diff

File Portfile-gmt4.diff, 4.2 KB (added by florian@…, 10 years ago)

Portfile patch for gmt4

  • Portfile

    old new  
    44PortSystem          1.0
    55
    66name                gmt4
    7 version             4.5.9
     7version             4.5.11
    88categories          science
    99platforms           darwin
    1010maintainers         eprofs.de:florian \
     
    1313description         The Generic Mapping Tools
    1414long_description GMT is an open source collection of ~65 tools  \
    1515    for manipulating geographic and Cartesian data sets and     \
    16     producing Encapsulated PostScript File (EPS) illustrations  \
    17     ranging from simple x-y plots via contour maps to          \
    18     artificially illuminated surfaces and 3-D perspective views.
     16    producing PostScript illustrations ranging from simple x-y  \
     17    plots via contour maps to artificially illuminated surfaces \
     18    and 3D perspective views.
    1919conflicts           gmt
    2020homepage            http://gmt.soest.hawaii.edu/
    2121master_sites        ftp://ftp.soest.hawaii.edu/gmt          \
     
    2525                    ftp://ftp.geologi.uio.no/pub/gmt        \
    2626                    ftp://gd.tuwien.ac.at/pub/gmt           \
    2727                    ftp://ftp.scc.u-tokai.ac.jp/pub/gmt     \
    28                     ftp://mirror.geosci.usyd.edu.au/pub/gmt \
    2928                    ftp://gmt.mirror.ac.za/pub/gmt
    3029use_bzip2           yes
    31 set nameprefix      gmt
    32 distname            ${nameprefix}-${version}
    33 set dfile_gmt_gpl   ${distname}${extract.suffix}
    34 set dfile_gmt_nogpl ${nameprefix}-${version}-non-gpl${extract.suffix}
     30distname            gmt-${version}
     31set dfile_gmt_gpl   ${distname}-src${extract.suffix}
     32set dfile_gmt_nogpl ${distname}-non-gpl-src${extract.suffix}
    3533distfiles           ${dfile_gmt_gpl} \
    3634                    ${dfile_gmt_nogpl}
    3735
    3836checksums           ${dfile_gmt_gpl} \
    39                     md5     9f241e97774eadd1fe79f4d7022fcaed \
    40                     sha1    711922fd99dcd47ace522f1e46fcafa5beab8c94 \
    41                     rmd160  67d36ecf68b9bcd9a38de61e4f1b3e1120c71823 \
     37                    md5     e51a8827d9b0ce3f36cfe6be01f24931 \
     38                    sha1    9f226fdb498a6868da98a6014517aa9537542f03 \
     39                    rmd160  1665f13e0a877282a57a93989f9ba8fbf49b2645 \
    4240                    ${dfile_gmt_nogpl} \
    43                     md5     d61a34a83dc630b464d472c6f0bdfc3a \
    44                     sha1    d03651d98a5f010090bceda2bbec09e53a543942 \
    45                     rmd160  a562f21b1e474d660cc5b9502543c127fb9fb801
     41                    md5     fd4abdbbc5cb48087a12a4c762b87123 \
     42                    sha1    67c2dd5ccde9ed661e9e9930785d305f73d3315a \
     43                    rmd160  6154cc49792ded6103a907da6fe00d7b9c042541
    4644
    47 worksrcdir          GMT${version}
     45patchfiles          patch-ps2raster.diff \
     46                    patch-grdvector.diff
    4847
    4948depends_lib         port:netcdf \
    5049                    port:gshhg-gmt-nc4
     
    5251destroot.target     install-all
    5352use_parallel_build  no
    5453universal_variant   no
    55 default_variants    +gdal
     54default_variants    +gdal +triangle
    5655
    5756configure.pre_args          --prefix=${prefix}/lib/${name}
    5857configure.args              --datarootdir=${prefix}/share/${name} \
     
    6564                            --enable-flock \
    6665                            --disable-xgrid \
    6766                            --disable-mex
    68 configure.optflags-delete   -O2
    6967configure.ldflags-delete    -L${prefix}/lib
    7068
    7169post-destroot {
    7270    ln -s ../lib/${name}/bin/GMT ${destroot}${prefix}/bin/${name}
    73     ln -s ../lib/${name}/bin/GMT ${destroot}${prefix}/bin/${nameprefix}
    7471    ln -s ../doc/${name} ${destroot}${prefix}/share/${name}/doc
    7572    ln -s ../../share/doc/${name}/man ${destroot}${prefix}/lib/${name}/man
    7673    ln -s ../../share/${name}/include ${destroot}${prefix}/lib/${name}/include
     
    8885}
    8986
    9087variant triangle description {use J. Shewchuk's fast, non-GPL triangulation routine} {
     88    license-delete          GPL-2
     89    license-append          Restrictive
    9190    configure.args-append   --enable-triangle
    9291}
    9392
     
    9897}
    9998
    10099livecheck.type      regex
    101 livecheck.url       ${homepage}/gmt/gmt_home.html
    102 livecheck.regex     {Current version[^0-9]*([0-9]+\.[0-9]+\.[0-9]+)}
     100livecheck.url       ${homepage}
     101livecheck.regex     {(?i)gmt-(4\.[0-9]+\.[0-9]+)<\/a>}