Skip to content
Permalink
Browse files

terra@ 0.7: updat to new compiler constructs

fixes build on newer compilers
closes: https://trac.macports.org/ticket/5627
4
  • Loading branch information
kencu committed Apr 11, 2018
1 parent 0db8509 commit c9a1e98f66671e9813c9b6f69c8287fae558c8b5
Showing with 9 additions and 1 deletion.
  1. +9 −1 gis/terra/Portfile
@@ -4,7 +4,7 @@ PortSystem 1.0

name terra
version 0.7
revision 2
revision 3

categories gis science
maintainers {gmail.com:tlockhart1976 @lockhart} openmaintainer
@@ -37,6 +37,14 @@ post-patch {
reinplace -E "s,@CXX@,${configure.cxx},g" ${worksrcpath}/Makefile
reinplace -E "s,@OPTFLAGS@,${configure.optflags},g" ${worksrcpath}/Makefile
reinplace -E "s,@PREFIX@,${prefix},g" ${worksrcpath}/Makefile

reinplace -E "s,array,Array,g" ${worksrcpath}/Array.h
reinplace -E "s,array,Array,g" ${worksrcpath}/GreedyInsert.h
reinplace -E "s,array,Array,g" ${worksrcpath}/Heap.h
reinplace -E "s,array,Array,g" ${worksrcpath}/output.cc

reinplace -E "s,typeof,decltype,g" ${worksrcpath}/Subdivision.cc
reinplace -E "s,typeof,decltype,g" ${worksrcpath}/greedy.cc
}

use_configure no

0 comments on commit c9a1e98

Please sign in to comment.
You can’t perform that action at this time.