ffmpeg won't compile when jack is installed

master
Adam Vandenberg 2010-08-14 10:05:39 -07:00
parent 72e19eb542
commit fb8a8f691a
1 changed files with 14 additions and 15 deletions

View File

@ -20,21 +20,20 @@ class Ffmpeg <Formula
depends_on 'libogg' => :optional
def install
configure_flags = [
"--prefix=#{prefix}",
"--disable-debug",
"--enable-shared",
"--enable-pthreads",
"--enable-nonfree",
"--enable-gpl"
]
args = ["--disable-debug",
"--prefix=#{prefix}",
"--enable-shared",
"--enable-pthreads",
"--enable-nonfree",
"--enable-gpl",
"--disable-indev=jack" ]
configure_flags << "--enable-libx264" if Formula.factory('x264').installed?
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('libvorbis').installed?
args << "--enable-libx264" if Formula.factory('x264').installed?
args << "--enable-libfaac" if Formula.factory('faac').installed?
args << "--enable-libfaad" if Formula.factory('faad2').installed?
args << "--enable-libmp3lame" if Formula.factory('lame').installed?
args << "--enable-libtheora" if Formula.factory('theora').installed?
args << "--enable-libvorbis" if Formula.factory('libvorbis').installed?
# For 32-bit compilation under gcc 4.2, see:
# http://trac.macports.org/ticket/20938#comment:22
@ -42,7 +41,7 @@ class Ffmpeg <Formula
ENV.append_to_cflags "-mdynamic-no-pic"
end
system "./configure", *configure_flags
system "./configure", *args
inreplace 'config.mak' do |s|
if MACOS_VERSION >= 10.6 and Hardware.is_64_bit?