2012-07-22 18:03:07 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Opus < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Audio codec"
|
2012-07-22 18:03:07 +00:00
|
|
|
homepage 'http://www.opus-codec.org'
|
2013-12-06 12:44:23 +00:00
|
|
|
url 'http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz'
|
|
|
|
sha1 '35005f5549e2583f5770590135984dcfce6f3d58'
|
2012-07-22 18:03:07 +00:00
|
|
|
|
2014-10-22 14:41:53 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "5fb89890cfc8c254a6f13f9657a66da385887b2b" => :yosemite
|
|
|
|
sha1 "8ac2e93276b0df2f69c01d0b727fbff57a637e9e" => :mavericks
|
|
|
|
sha1 "a7e6ed2455861c41e021fec280b6fa28462341a2" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-10-23 19:03:01 +00:00
|
|
|
option "with-custom-modes", "Enable custom-modes for opus see http://www.opus-codec.org/docs/html_api-1.1.0/group__opus__custom.html"
|
|
|
|
|
2013-09-22 01:47:36 +00:00
|
|
|
head do
|
|
|
|
url 'https://git.xiph.org/opus.git'
|
2012-07-22 18:03:07 +00:00
|
|
|
|
2014-12-04 17:01:26 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2012-07-22 18:03:07 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2014-10-23 19:03:01 +00:00
|
|
|
args = ["--disable-dependency-tracking", "--disable-doc", "--prefix=#{prefix}"]
|
|
|
|
args << "--enable-custom-modes" if build.with? "custom-modes"
|
|
|
|
|
2012-08-26 06:36:33 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2014-10-23 19:03:01 +00:00
|
|
|
system "./configure", *args
|
2012-07-22 18:03:07 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|