[96193] trunk/dports/science/ncarg/Portfile

takeshi at macports.org takeshi at macports.org
Thu Aug 2 23:18:02 PDT 2012


Revision: 96193
          https://trac.macports.org/changeset/96193
Author:   takeshi at macports.org
Date:     2012-08-02 23:17:59 -0700 (Thu, 02 Aug 2012)
Log Message:
-----------
ncarg: fixed reinplace error, closing #35481

Modified Paths:
--------------
    trunk/dports/science/ncarg/Portfile

Modified: trunk/dports/science/ncarg/Portfile
===================================================================
--- trunk/dports/science/ncarg/Portfile	2012-08-03 01:36:20 UTC (rev 96192)
+++ trunk/dports/science/ncarg/Portfile	2012-08-03 06:17:59 UTC (rev 96193)
@@ -5,7 +5,7 @@
 
 name                        ncarg
 version                     6.0.0
-revision                    5
+revision                    6
 categories                  science
 maintainers                 takeshi
 description                 language for scientific data processing and visualization
@@ -72,6 +72,7 @@
 }
 
 post-patch {
+    reinplace "s| -lsz||g" ${worksrcpath}/Configure
     reinplace "s| -lsz||g" ${worksrcpath}/config/Project
     reinplace "s|INC=-I/usr/include|INC=${configure.cppflags} ${configure.cflags}|" ${workpath}/${g2clib_worksrcdir}/makefile
     reinplace "s|CC=gcc -fPIC|CC=${configure.cc}|" ${workpath}/${g2clib_worksrcdir}/makefile
@@ -92,15 +93,17 @@
         reinplace "s| gfortran$| ${configure.fc}|" ${worksrcpath}/config/${f} 
         reinplace "s|gcc$|${configure.cc}|" ${worksrcpath}/config/${f}
         reinplace "/CcOptions/d" ${worksrcpath}/config/${f}
+        reinplace "/ArchRecLibSearch/d" ${worksrcpath}/config/${f}
+        reinplace "/ArchRecIncSearch/d" ${worksrcpath}/config/${f}
         reinplace "s|-lXext$|-lXext\\
+#define ArchRecLibSearch    -L${prefix}/lib\\
+#define ArchRecIncSearch    -I${prefix}/include\\
 #define CcOptions -fPIC -ansi -D_DARWIN_C_SOURCE -DH5_USE_16_API \\
 #define COptimizeFlag ${configure.cflags}\\
 #define FOptimizeFlag ${configure.fflags}\\
 #define ManRoot ${destroot}${prefix}/share/man\\
 #define NetCDF4lib -lnetcdf\\
 #define HDFEOS5lib -lhe5_hdfeos -lGctp -lhdf5|" ${worksrcpath}/config/${f}
-        reinplace "s|-L/usr/X11R6/lib -L/sw/lib|-L${prefix}/lib|" ${worksrcpath}/config/${f}
-        reinplace "s|-I/usr/X11R6/include -I/sw/include|-I${prefix}/include|" ${worksrcpath}/config/${f}
     }
     if {[variant_isset g95]} {
         reinplace "s|-fno-range-check||" ${worksrcpath}/config/Darwin_Intel
@@ -169,9 +172,8 @@
 EOF"
 }
 post-configure {
-    foreach f {Site.local makefile} {
-        reinplace "s| -lsz||g" ${worksrcpath}/config/${f}
-    }
+#    reinplace "s| -lsz||g" ${worksrcpath}/makefile
+#    reinplace "s| -lsz||g" ${worksrcpath}/config/Site.local
     system "cd ${worksrcpath}; make Info"
     system "cat ${worksrcpath}/config/Site.local"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120802/9ebae638/attachment.html>


More information about the macports-changes mailing list