[83625] trunk/dports/multimedia/ffmpeg/Portfile
devans at macports.org
devans at macports.org
Wed Sep 7 17:05:08 PDT 2011
Revision: 83625
http://trac.macports.org/changeset/83625
Author: devans at macports.org
Date: 2011-09-07 17:05:07 -0700 (Wed, 07 Sep 2011)
Log Message:
-----------
ffmpeg: force use of gcc-4.2 to ensure compilation on all platforms. See #30137, #31151.
Modified Paths:
--------------
trunk/dports/multimedia/ffmpeg/Portfile
Modified: trunk/dports/multimedia/ffmpeg/Portfile
===================================================================
--- trunk/dports/multimedia/ffmpeg/Portfile 2011-09-07 23:30:20 UTC (rev 83624)
+++ trunk/dports/multimedia/ffmpeg/Portfile 2011-09-08 00:05:07 UTC (rev 83625)
@@ -84,8 +84,21 @@
# Under some conditions, llvm-gcc-4.2 drops some "unused" code even though it is used
# fixed in llvm-gcc trunk, but not in Apple's shipped llvm-gccs.
-if {${configure.compiler} == "llvm-gcc-4.2"} {
- configure.compiler clang
+#
+# similarly clang fails to build on i386 platforms
+#
+# use code provided by jeremyhu here to use gcc-4.2 instead
+#
+# http://lists.macosforge.org/pipermail/macports-dev/2011-July/015263.html
+#
+
+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
+ }
}
configure.cflags-append -DHAVE_LRINTF ${configure.cppflags}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110907/5f5544a0/attachment.html>
More information about the macports-changes
mailing list