From d6fe05fbce0011044d979f43c93405035cf9db52 Mon Sep 17 00:00:00 2001 From: Fabián Arias Date: Wed, 29 Jun 2011 22:26:49 -0400 Subject: ffmpeg: allow use of alternate compilers --- Library/Formula/ffmpeg.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library') 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? -- cgit v1.2.3