[86464] trunk/dports/multimedia/MPlayer/Portfile
ryandesign at macports.org
ryandesign at macports.org
Wed Oct 26 02:54:26 PDT 2011
Revision: 86464
http://trac.macports.org/changeset/86464
Author: ryandesign at macports.org
Date: 2011-10-26 02:54:24 -0700 (Wed, 26 Oct 2011)
Log Message:
-----------
MPlayer: use gcc-4.2 instead of llvm-gcc-4.2 or clang, with a fallback to apple-gcc42; see #30279
Modified Paths:
--------------
trunk/dports/multimedia/MPlayer/Portfile
Modified: trunk/dports/multimedia/MPlayer/Portfile
===================================================================
--- trunk/dports/multimedia/MPlayer/Portfile 2011-10-26 09:49:03 UTC (rev 86463)
+++ trunk/dports/multimedia/MPlayer/Portfile 2011-10-26 09:54:24 UTC (rev 86464)
@@ -67,6 +67,17 @@
# configure is not autoconf
universal_variant no
+if {${configure.compiler} == "clang" ||
+ ${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
+ # base (as of 2.0.3) doesn't set cxx for apple-gcc-4.2
+ configure.cxx ${prefix}/bin/g++-apple-4.2
+ }
+}
+
configure.args \
--extra-cflags="-I${prefix}/include/lzo -I${prefix}/include" \
--extra-ldflags="-L${prefix}/lib -L${prefix}/lib/samba3" \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111026/afc2ea9b/attachment.html>
More information about the macports-changes
mailing list