[80097] trunk/dports/graphics/libcaca/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Mon Jul 4 02:22:38 PDT 2011


Revision: 80097
          http://trac.macports.org/changeset/80097
Author:   jeremyhu at macports.org
Date:     2011-07-04 02:22:38 -0700 (Mon, 04 Jul 2011)
Log Message:
-----------
libcaca: Fallback on gcc-4.2 based on selected compiler rather than platform

Modified Paths:
--------------
    trunk/dports/graphics/libcaca/Portfile

Modified: trunk/dports/graphics/libcaca/Portfile
===================================================================
--- trunk/dports/graphics/libcaca/Portfile	2011-07-04 09:18:20 UTC (rev 80096)
+++ trunk/dports/graphics/libcaca/Portfile	2011-07-04 09:22:38 UTC (rev 80097)
@@ -30,7 +30,7 @@
                  --disable-x11 --enable-ncurses --enable-imlib2 \
                  --disable-ruby
 
-variant	x11 description {Add X11 driver support} {
+variant	x11 {
 	depends_lib-append	port:xorg-libX11
 	configure.args-delete   --disable-x11
 	configure.args-append	--enable-x11 \
@@ -38,11 +38,12 @@
 	                        --x-libraries=${prefix}/lib 
 }
 
-platform darwin 11 {
-	# BUILD FIX TODO:
-	# llvm-gcc-4.2 and clang fail to build as of 2011.06.16
-	# This looks like an error in the package.
-	configure.compiler gcc-4.2
+# BUILD FIX TODO:
+# llvm-gcc-4.2 and clang fail to build as of 2011.06.16
+# This looks like an error in the package.
+if {${configure.compiler} == "llvm-gcc-4.2" ||
+    ${configure.compiler} == "clang"} {
+    configure.compiler gcc-4.2
 }
 
 livecheck.type  regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110704/aa0bd8e1/attachment-0001.html>


More information about the macports-changes mailing list