[91793] trunk/dports/lang/apple-gcc42/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Tue Apr 10 11:11:03 PDT 2012


Revision: 91793
          https://trac.macports.org/changeset/91793
Author:   jeremyhu at macports.org
Date:     2012-04-10 11:11:03 -0700 (Tue, 10 Apr 2012)
Log Message:
-----------
apple-gcc42: Fix destroot for Tiger/ppc (#33939)

Modified Paths:
--------------
    trunk/dports/lang/apple-gcc42/Portfile

Modified: trunk/dports/lang/apple-gcc42/Portfile
===================================================================
--- trunk/dports/lang/apple-gcc42/Portfile	2012-04-10 17:55:57 UTC (rev 91792)
+++ trunk/dports/lang/apple-gcc42/Portfile	2012-04-10 18:11:03 UTC (rev 91793)
@@ -192,10 +192,12 @@
 build.target install
 destroot {}
 post-destroot {
-    delete ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/4.2.1/as
-    ln -s ../../../../../bin/as ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/4.2.1/as
-    delete ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/4.2.1/ld
-    ln -s ../../../../../bin/ld ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/4.2.1/ld
+    if {[string match "*i386*" ${build_targets}]} {
+        delete ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/4.2.1/as
+        ln -s ../../../../../bin/as ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/4.2.1/as
+        delete ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/4.2.1/ld
+        ln -s ../../../../../bin/ld ${destroot}${prefix}/libexec/${name}/gcc/i686-apple-darwin${os.major}/4.2.1/ld
+    }
 
     if {[string match "*ppc*" ${build_targets}]} {
         delete ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/4.2.1/as
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120410/d2c99699/attachment.html>


More information about the macports-changes mailing list