[74555] trunk/dports/lang/apple-gcc42-devel/Portfile

jmr at macports.org jmr at macports.org
Tue Dec 21 11:22:23 PST 2010


Revision: 74555
          http://trac.macports.org/changeset/74555
Author:   jmr at macports.org
Date:     2010-12-21 11:22:17 -0800 (Tue, 21 Dec 2010)
Log Message:
-----------
apple-gcc42-devel: only use universal_archs when +universal is set (#21709)

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

Modified: trunk/dports/lang/apple-gcc42-devel/Portfile
===================================================================
--- trunk/dports/lang/apple-gcc42-devel/Portfile	2010-12-21 19:20:35 UTC (rev 74554)
+++ trunk/dports/lang/apple-gcc42-devel/Portfile	2010-12-21 19:22:17 UTC (rev 74555)
@@ -29,6 +29,12 @@
 }
 
 use_configure   no
+universal_variant yes
+if {[variant_isset universal]} {
+    set archs ${configure.universal_archs}
+} else {
+    set archs ${configure.build_arch}
+}
 
 # first parameter: space-separated list of archs compiler will run on
 # second parameter: space-separated list of archs compiler will generate code for
@@ -38,7 +44,7 @@
 # sixth parameter: a directory to place information helpful in debugging compiler
 # This build.cmd line will build gcc 4.2 with c++ and obj-c++ support
 build.cmd   ${worksrcpath}/build_gcc \
-            \"${configure.universal_archs}\" \"${configure.universal_archs}\" \
+            \"${archs}\" \"${archs}\" \
             ${worksrcpath} ${build_prefix} ${destroot} ${worksrcpath}/debug
 
 destroot {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101221/1db0672e/attachment.html>


More information about the macports-changes mailing list