Permalink
Browse files
spatialite: Use fs-traverse instead of exec find
- Loading branch information
Showing
with
6 additions
and
5 deletions.
-
+6
−5
databases/spatialite/Portfile
|
|
@@ -42,11 +42,12 @@ configure.args-append \ |
|
|
--with-geos-incl=${prefix}/include |
|
|
|
|
|
post-configure { |
|
|
set mkfiles [exec find ${worksrcpath} -name Makefile] |
|
|
foreach file ${mkfiles} { |
|
|
reinplace -q -E "s|^(AM_CPPFLAGS =.*)(-I${prefix}/include )(.*)$|\\1 \\3|" ${file} |
|
|
reinplace -q -E "s|^(gaiageo_la_CPPFLAGS =.*)(-I${prefix}/include )(.*)$|\\1 \\3|" ${file} |
|
|
reinplace -q -E "s|^(splite_la_CPPFLAGS =.*)(-I${prefix}/include )(.*)$|\\1 \\3|" ${file} |
|
|
fs-traverse file ${worksrcpath} { |
|
|
if {[file tail ${file}] eq "Makefile"} { |
|
|
reinplace -q -E "s|^(AM_CPPFLAGS =.*)(-I${prefix}/include )(.*)$|\\1 \\3|" ${file} |
|
|
reinplace -q -E "s|^(gaiageo_la_CPPFLAGS =.*)(-I${prefix}/include )(.*)$|\\1 \\3|" ${file} |
|
|
reinplace -q -E "s|^(splite_la_CPPFLAGS =.*)(-I${prefix}/include )(.*)$|\\1 \\3|" ${file} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|