[87970] trunk/dports/lang/g95/Portfile

takeshi at macports.org takeshi at macports.org
Wed Dec 14 13:10:45 PST 2011


Revision: 87970
          http://trac.macports.org/changeset/87970
Author:   takeshi at macports.org
Date:     2011-12-14 13:10:43 -0800 (Wed, 14 Dec 2011)
Log Message:
-----------
g95: fixed build on Intel Mac running Tiger. Does not affect others, leaving revision unincremented

Modified Paths:
--------------
    trunk/dports/lang/g95/Portfile

Modified: trunk/dports/lang/g95/Portfile
===================================================================
--- trunk/dports/lang/g95/Portfile	2011-12-14 21:01:03 UTC (rev 87969)
+++ trunk/dports/lang/g95/Portfile	2011-12-14 21:10:43 UTC (rev 87970)
@@ -94,8 +94,10 @@
 pre-configure {
     file mkdir ${workpath}/gcc-${version_gcc}/${name}
     reinplace "s|tjmp %%edx|tjmp *%%edx|" ${workpath}/gcc-${version_gcc}/gcc/config/i386/i386.c
+    if {${build_arch} == "i386"} {
+        reinplace "s|i686|i386|" ${workpath}/gcc-${version_gcc}/gcc/config/i386/darwin.h
+    }
     if {${os.major} != 8} {
-        reinplace "s|i686|i386|" ${workpath}/gcc-${version_gcc}/gcc/config/i386/darwin.h
         set gcc_configargs "--with-as=/usr/bin/as --with-ld=/usr/bin/ld --with-nm=/usr/bin/nm"
     } else {
         reinplace "s|/usr/bin/libtool|${prefix}/bin/odlibtool|" ${workpath}/gcc-${version_gcc}/gcc/config/darwin.h
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111214/b980c73e/attachment.html>


More information about the macports-changes mailing list