aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ffmpeg.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/ffmpeg.rb')
-rw-r--r--Library/Formula/ffmpeg.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/ffmpeg.rb b/Library/Formula/ffmpeg.rb
index 1eddaa241..7b69bfa1a 100644
--- a/Library/Formula/ffmpeg.rb
+++ b/Library/Formula/ffmpeg.rb
@@ -33,6 +33,11 @@ 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?
+
# For 32-bit compilation under gcc 4.2, see:
# http://trac.macports.org/ticket/20938#comment:22
if MacOS.snow_leopard? and Hardware.is_32_bit?