Ticket #56274: Portfile.diff

File Portfile.diff, 976 bytes (added by lockhart (Thomas Lockhart), 6 years ago)

Fix compilation problems with newer language standards.

  • Portfile

    old new  
    44
    55name                terra
    66version             0.7
    7 revision            2
     7revision            3
    88
    99categories          gis science
    1010maintainers         {gmail.com:tlockhart1976 @lockhart} openmaintainer
     
    3737    reinplace -E "s,@CXX@,${configure.cxx},g" ${worksrcpath}/Makefile
    3838    reinplace -E "s,@OPTFLAGS@,${configure.optflags},g" ${worksrcpath}/Makefile
    3939    reinplace -E "s,@PREFIX@,${prefix},g" ${worksrcpath}/Makefile
     40
     41    reinplace -E "s,array,Array,g" ${worksrcpath}/Array.h
     42    reinplace -E "s,array,Array,g" ${worksrcpath}/GreedyInsert.h
     43    reinplace -E "s,array,Array,g" ${worksrcpath}/Heap.h
     44    reinplace -E "s,array,Array,g" ${worksrcpath}/output.cc
     45
     46    reinplace -E "s,typeof,decltype,g" ${worksrcpath}/Subdivision.cc
     47    reinplace -E "s,typeof,decltype,g" ${worksrcpath}/greedy.cc
    4048}
    4149
    4250use_configure       no