ffmpeg should compile to work with ogg if selected

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Hampton Catlin 2010-08-04 13:24:24 +01:00 committed by Adam Vandenberg
parent b07952c319
commit 7eec7b8686
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,8 @@ class Ffmpeg <Formula
depends_on 'faac' => :optional
depends_on 'faad2' => :optional
depends_on 'lame' => :optional
depends_on 'theora' => :optional
depends_on 'libogg' => :optional
def install
configure_flags = [
@ -30,6 +32,8 @@ class Ffmpeg <Formula
configure_flags << "--enable-libfaac" if Formula.factory('faac').installed?
configure_flags << "--enable-libfaad" if Formula.factory('faad2').installed?
configure_flags << "--enable-libmp3lame" if Formula.factory('lame').installed?
configure_flags << "--enable-libtheora" if Formula.factory('theora').installed?
configure_flags << "--enable-libvorbis" if Formula.factory('lame').installed?
# For 32-bit compilation under gcc 4.2, see:
# http://trac.macports.org/ticket/20938#comment:22