ffmpeg: always use clang to compile on Lion

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
João 2011-08-14 23:38:01 +01:00 committed by Adam Vandenberg
parent eca6f69ba0
commit 499d8523c5
1 changed files with 9 additions and 4 deletions

View File

@ -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