ffmpeg formula: add optional xvid dependency

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Pavel Gorbokon 2010-10-31 02:46:44 +03:00 committed by Adam Vandenberg
parent 9901d5de07
commit 81b93ed592

View file

@ -15,6 +15,7 @@ class Ffmpeg <Formula
depends_on 'libvorbis' => :optional
depends_on 'libogg' => :optional
depends_on 'libvpx' => :optional
depends_on 'xvid' => :optional
def install
args = ["--disable-debug",
@ -32,6 +33,7 @@ class Ffmpeg <Formula
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?
# For 32-bit compilation under gcc 4.2, see:
# http://trac.macports.org/ticket/20938#comment:22