homebrew-core/Formula/theora.rb
Jack Nagel 76021a8379 Provide compatibility with libtool 2.4.2 and 2.4.3+
The location of config.guess and config.sub changed.
2014-12-07 00:15:40 -05:00

30 lines
961 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"
bottle do
cellar :any
revision 1
sha1 "af6b483eb5119d88559d435f457b6d12d5ecf5bc" => :yosemite
sha1 "1ef8982b17448df7e7a665ff74381a6013a430a9" => :mavericks
sha1 "55f7781fe5ae59ef1c0aa1dfe95fd4d4f37ce060" => :mountain_lion
end
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.{guess,sub}"], buildpath
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-oggtest",
"--disable-vorbistest",
"--disable-examples"
system "make", "install"
end
end