Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
ffmpeg: Actually change optional deps checking
Browse files Browse the repository at this point in the history
Ooops, this should have been ammended onto 9e24c7a.
  • Loading branch information
Sharpie committed May 3, 2012
1 parent 9e24c7a commit b0ea047
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Library/Formula/ffmpeg.rb
Expand Up @@ -49,16 +49,16 @@ def install
"--cc=#{ENV.cc}"]

args << "--enable-libx264" if Formula.factory('x264').linked_keg.exist?
args << "--enable-libfaac" if Formula.factory('faac').installed?
args << "--enable-libmp3lame" if Formula.factory('lame').installed?
args << "--enable-librtmp" if Formula.factory('rtmpdump').installed?
args << "--enable-libtheora" if Formula.factory('theora').installed?
args << "--enable-libvorbis" if Formula.factory('libvorbis').installed?
args << "--enable-libvpx" if Formula.factory('libvpx').installed?
args << "--enable-libxvid" if Formula.factory('xvid').installed?
args << "--enable-libopencore-amrnb" if Formula.factory('opencore-amr').installed?
args << "--enable-libopencore-amrwb" if Formula.factory('opencore-amr').installed?
args << "--enable-libass" if Formula.factory('libass').installed?
args << "--enable-libfaac" if Formula.factory('faac').linked_keg.exist?
args << "--enable-libmp3lame" if Formula.factory('lame').linked_keg.exist?
args << "--enable-librtmp" if Formula.factory('rtmpdump').linked_keg.exist?
args << "--enable-libtheora" if Formula.factory('theora').linked_keg.exist?
args << "--enable-libvorbis" if Formula.factory('libvorbis').linked_keg.exist?
args << "--enable-libvpx" if Formula.factory('libvpx').linked_keg.exist?
args << "--enable-libxvid" if Formula.factory('xvid').linked_keg.exist?
args << "--enable-libopencore-amrnb" if Formula.factory('opencore-amr').linked_keg.exist?
args << "--enable-libopencore-amrwb" if Formula.factory('opencore-amr').linked_keg.exist?
args << "--enable-libass" if Formula.factory('libass').linked_keg.exist?
args << "--disable-ffplay" unless ffplay?

# For 32-bit compilation under gcc 4.2, see:
Expand Down

0 comments on commit b0ea047

Please sign in to comment.