Revision: 80097 http://trac.macports.org/changeset/80097 Author: jeremyhu@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
participants (1)
-
jeremyhu@macports.org