aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/opus.rb
blob: 5a87164334db9e5a03b0dddae78f48dc920c8db9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'

class Opus < Formula
  homepage 'http://www.opus-codec.org'
  url 'http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz'
  sha1 '5781bdd009943deb55a742ac99db20a0d4e89c1e'

  head 'https://git.xiph.org/opus.git'

  if build.head?
    depends_on :automake
    depends_on :libtool
  end

  def install
    system "./autogen.sh" if build.head?
    system "./configure", "--disable-dependency-tracking", "--disable-doc",
                          "--prefix=#{prefix}"
    system "make install"
  end
end