22 lines
705 B
Ruby
22 lines
705 B
Ruby
require "formula"
|
|
|
|
class Theora < Formula
|
|
homepage "http://www.theora.org/"
|
|
url "http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2"
|
|
sha1 "8dcaa8e61cd86eb1244467c0b64b9ddac04ae262"
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libtool" => :build
|
|
depends_on "libogg"
|
|
depends_on "libvorbis"
|
|
|
|
def install
|
|
cp Dir["#{Formula["libtool"].opt_share}/libtool/config/config.*"], buildpath
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--disable-oggtest",
|
|
"--disable-vorbistest",
|
|
"--disable-examples"
|
|
system "make", "install"
|
|
end
|
|
end
|