aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ffmpeg.rb
diff options
context:
space:
mode:
authorJoão2011-08-14 23:38:01 +0100
committerAdam Vandenberg2011-08-14 16:43:06 -0700
commit0b5e0a66dc463eb3bc88a7ebfba47a5ab43bbfde (patch)
treee269f4c1314a3e4d6f9bc7151a2937d4f338ef10 /Library/Formula/ffmpeg.rb
parent485760724713f2f60f8fb3157ebd70a1d5c6e61f (diff)
downloadhomebrew-0b5e0a66dc463eb3bc88a7ebfba47a5ab43bbfde.tar.bz2
ffmpeg: always use clang to compile on Lion
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/ffmpeg.rb')
-rw-r--r--Library/Formula/ffmpeg.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/Library/Formula/ffmpeg.rb b/Library/Formula/ffmpeg.rb
index bd43604f8..f8563d16f 100644
--- a/Library/Formula/ffmpeg.rb
+++ b/Library/Formula/ffmpeg.rb
@@ -32,10 +32,15 @@ class Ffmpeg < Formula
args << "--enable-libvpx" if Formula.factory('libvpx').installed?
args << "--enable-libxvid" if Formula.factory('xvid').installed?
- # Enable alternate compilers
- args << "--cc=clang" if ENV.use_clang?
- args << "--cc=llvm-gcc" if ENV.use_llvm?
- args << "--cc=gcc" if ENV.use_gcc?
+ # Force use of clang on Lion
+ # See: https://avcodec.org/trac/ffmpeg/ticket/353
+ if MacOS.lion?
+ args << "--cc=clang"
+ else
+ args << "--cc=clang" if ENV.use_clang?
+ args << "--cc=llvm-gcc" if ENV.use_llvm?
+ args << "--cc=gcc" if ENV.use_gcc?
+ end
# For 32-bit compilation under gcc 4.2, see:
# http://trac.macports.org/ticket/20938#comment:22