2011-11-05 04:31:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ffmpeg2theora < Formula
|
|
|
|
homepage 'http://v2v.cc/~j/ffmpeg2theora/'
|
2012-08-04 20:34:28 +00:00
|
|
|
url 'http://v2v.cc/~j/ffmpeg2theora/downloads/ffmpeg2theora-0.29.tar.bz2'
|
|
|
|
sha1 '7e78c5ddb8740b33a6ae4c9da76047bd8e662791'
|
2011-11-05 04:31:34 +00:00
|
|
|
|
2012-05-10 14:10:12 +00:00
|
|
|
head 'http://svn.xiph.org/trunk/ffmpeg2theora'
|
2012-02-22 00:19:07 +00:00
|
|
|
|
2011-11-05 04:31:34 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'scons' => :build
|
|
|
|
depends_on 'ffmpeg'
|
2011-11-05 04:31:34 +00:00
|
|
|
depends_on 'libkate' => :optional
|
2011-11-05 04:31:34 +00:00
|
|
|
depends_on 'libogg'
|
|
|
|
depends_on 'libvorbis'
|
|
|
|
depends_on 'theora'
|
|
|
|
|
|
|
|
def install
|
2011-11-05 04:31:34 +00:00
|
|
|
args = ["prefix=#{prefix}", "mandir=PREFIX/share/man"]
|
|
|
|
args << "libkate=1" if Formula.factory('libkate').installed?
|
|
|
|
system "scons", "install", *args
|
2011-11-05 04:31:34 +00:00
|
|
|
end
|
|
|
|
end
|