ffmpeg2theora: add libkate support

Closes Homebrew/homebrew#8456.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Oleg Oshmyan 2011-11-05 04:31:34 +00:00 committed by Jack Nagel
parent 387b45d9c6
commit f9d3f1ae27

View file

@ -8,11 +8,14 @@ class Ffmpeg2theora < Formula
depends_on 'pkg-config' => :build
depends_on 'scons' => :build
depends_on 'ffmpeg'
depends_on 'libkate' => :optional
depends_on 'libogg'
depends_on 'libvorbis'
depends_on 'theora'
def install
system "scons", "install", "prefix=#{prefix}", "mandir=PREFIX/share/man"
args = ["prefix=#{prefix}", "mandir=PREFIX/share/man"]
args << "libkate=1" if Formula.factory('libkate').installed?
system "scons", "install", *args
end
end