Skip to content

Instantly share code, notes, and snippets.

@jlank
Created May 28, 2012 15:31
Show Gist options
  • Save jlank/2819757 to your computer and use it in GitHub Desktop.
Save jlank/2819757 to your computer and use it in GitHub Desktop.
require 'formula'
class Ffmpeg2theora < Formula
homepage 'http://v2v.cc/~j/ffmpeg2theora/'
url 'http://v2v.cc/~j/ffmpeg2theora/downloads/ffmpeg2theora-0.28.tar.bz2'
md5 '31e389bfa0719f489af38b6fb2bd0a1f'
head 'http://svn.xiph.org/trunk/ffmpeg2theora'
depends_on 'pkg-config' => :build
depends_on 'scons' => :build
depends_on 'libkate' => :optional
depends_on 'libogg'
depends_on 'libvorbis'
depends_on 'theora'
def install
args = ["prefix=#{prefix}", "mandir=PREFIX/share/man"]
args << "libkate=1" if Formula.factory('libkate').installed?
system "scons", "install", *args
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment