[66649] trunk/dports/science/nco/Portfile
takeshi at macports.org
takeshi at macports.org
Sun Apr 18 23:43:09 PDT 2010
Revision: 66649
http://trac.macports.org/changeset/66649
Author: takeshi at macports.org
Date: 2010-04-18 23:43:07 -0700 (Sun, 18 Apr 2010)
Log Message:
-----------
nco: skip editing Makefile when openmpi or mpich2 variants are set
Modified Paths:
--------------
trunk/dports/science/nco/Portfile
Modified: trunk/dports/science/nco/Portfile
===================================================================
--- trunk/dports/science/nco/Portfile 2010-04-19 06:27:16 UTC (rev 66648)
+++ trunk/dports/science/nco/Portfile 2010-04-19 06:43:07 UTC (rev 66649)
@@ -55,11 +55,13 @@
--disable-dap-opendap \
--enable-netcdf4
-post-configure {
- foreach d {nco nco++ nco_c++} {
- reinplace "s|= -I${prefix}/include|= |" ${worksrcpath}/src/${d}/Makefile
+if {![variant_isset openmpi]&&![variant_isset mpich2]} {
+ post-configure {
+ foreach d {nco nco++ nco_c++} {
+ reinplace "s|= -I${prefix}/include|= |" ${worksrcpath}/src/${d}/Makefile
+ }
+ reinplace "s|nco \${GSL_INC_ARG}|nco|" ${worksrcpath}/src/nco++/Makefile
}
- reinplace "s|nco \${GSL_INC_ARG}|nco|" ${worksrcpath}/src/nco++/Makefile
}
post-destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100418/140abd48/attachment.html>
More information about the macports-changes
mailing list