Revision
74555
Author
jmr@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

Diff

Modified: trunk/dports/lang/apple-gcc42-devel/Portfile (74554 => 74555)


--- 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 {}