51 lines
1.5 KiB
Ruby
51 lines
1.5 KiB
Ruby
class Theora < Formula
|
|
desc "Open video compression format"
|
|
homepage "https://www.theora.org/"
|
|
url "http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2"
|
|
sha256 "b6ae1ee2fa3d42ac489287d3ec34c5885730b1296f0801ae577a35193d3affbc"
|
|
|
|
bottle do
|
|
cellar :any
|
|
rebuild 2
|
|
sha256 "899a793d64a16ea5a18bfe984c8a97966b6c027c258abb026b7d77443849eeca" => :sierra
|
|
sha256 "03b63a91812185120355da8292b40a2afd8377dcd8e3825eb9cbc217a3f4bc79" => :el_capitan
|
|
sha256 "ab9dd77803ec6885cb9701859de9b1b8ff6b85cb7cef24400dec6adb4b8c6378" => :yosemite
|
|
sha256 "58be26743e23be63aee48186bfa9cd8a982de957efb040a6ab3030aa62753977" => :mavericks
|
|
end
|
|
|
|
devel do
|
|
url "http://downloads.xiph.org/releases/theora/libtheora-1.2.0alpha1.tar.xz"
|
|
version "1.2.0alpha1"
|
|
sha256 "5be692c6be66c8ec06214c28628d7b6c9997464ae95c4937805e8057808d88f7"
|
|
end
|
|
|
|
head do
|
|
url "https://git.xiph.org/theora.git"
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
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 "./autogen.sh" if build.head?
|
|
|
|
args = %W[
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
--disable-oggtest
|
|
--disable-vorbistest
|
|
--disable-examples
|
|
]
|
|
|
|
args << "--disable-asm" unless build.stable?
|
|
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
end
|
|
end
|