2012-07-22 18:09:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class OpusTools < Formula
|
|
|
|
homepage 'http://www.opus-codec.org'
|
2012-09-12 03:01:01 +00:00
|
|
|
url 'http://downloads.xiph.org/releases/opus/opus-tools-0.1.5.tar.gz'
|
|
|
|
sha1 '8e952ca1f24cf847f4534c017a64b0823df9ecd0'
|
2012-07-22 18:09:16 +00:00
|
|
|
|
|
|
|
head 'https://git.xiph.org/opus-tools.git'
|
|
|
|
|
2012-08-28 04:54:55 +00:00
|
|
|
if build.head?
|
2012-07-22 18:09:16 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
end
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'opus'
|
|
|
|
depends_on 'libogg'
|
|
|
|
|
|
|
|
def install
|
2012-08-28 04:54:55 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2012-07-22 18:09:16 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|