[80507] trunk/dports/www/firefox-x11-devel/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Wed Jul 13 14:21:04 PDT 2011


Revision: 80507
          http://trac.macports.org/changeset/80507
Author:   jeremyhu at macports.org
Date:     2011-07-13 14:21:03 -0700 (Wed, 13 Jul 2011)
Log Message:
-----------
firefox-x11-devel: Use macports-clang or clang where gcc fails

Modified Paths:
--------------
    trunk/dports/www/firefox-x11-devel/Portfile

Modified: trunk/dports/www/firefox-x11-devel/Portfile
===================================================================
--- trunk/dports/www/firefox-x11-devel/Portfile	2011-07-13 21:09:36 UTC (rev 80506)
+++ trunk/dports/www/firefox-x11-devel/Portfile	2011-07-13 21:21:03 UTC (rev 80507)
@@ -113,18 +113,13 @@
 
 # xpctools and necko-wifi broke in 3.6b1
 
-# BUILD FIX TODO: test clang in XCode 4.0.x
-# gcc-4.0 has issues, so force gcc-4.2 on Leopard
+# XCode 3.1's gcc-4.0 and gcc-4.2 have issues
 # llvm-gcc-4.2 has trouble with some of the mmx asm
-# recent versions of clang build fine, but older versions were not tested, so
-# not falling forward to clang yet
-if {${configure.compiler} == "gcc-4.0" ||
-    ${configure.compiler} == "llvm-gcc-4.2"} {
-    configure.compiler gcc-4.2
-    if {![file executable ${configure.cc}]} {
-        depends_build-append port:apple-gcc42
-        configure.compiler apple-gcc-4.2
-    }
+if {${configure.compiler} == "gcc-4.0"} {
+    depends_build-append port:clang
+    configure.compiler macports-clang
+} elseif {${configure.compiler} == "llvm-gcc-4.2"} {
+    configure.compiler clang
 }
 
 # Yes, this is ugly... but the real fix is in the works
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110713/26c2f48e/attachment.html>


More information about the macports-changes mailing list