Revision
80098
Author
jeremyhu@macports.org
Date
2011-07-04 02:25:03 -0700 (Mon, 04 Jul 2011)

Log Message

liboil: Fallback on gcc-4.2 based on selected compiler rather than platform

Modified Paths

Diff

Modified: trunk/dports/devel/liboil/Portfile (80097 => 80098)


--- trunk/dports/devel/liboil/Portfile	2011-07-04 09:22:38 UTC (rev 80097)
+++ trunk/dports/devel/liboil/Portfile	2011-07-04 09:25:03 UTC (rev 80098)
@@ -57,10 +57,12 @@
 	post-patch {
 		reinplace "s|__HOST_CPU__|${build_arch}|" ${worksrcpath}/configure
 	}
+}
 
-	# BUILD FIX TODO:
-	# llvm-gcc-4.2 and clang fail to build as of 2011.06.16
-	# This is an error in the package.
+# BUILD FIX TODO:
+# llvm-gcc-4.2 and clang fail to build as of 2011.06.16
+# This is an error in the package.
+if {${configure.compiler} == "llvm-gcc-4.2" ||
+    ${configure.compiler} == "clang"} {
 	configure.compiler gcc-4.2
 }
-