aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/opusfile.rb
blob: 3b681502c8c2f0b5352e93474e689eb8ebec78eb (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 Opusfile < Formula
  homepage 'http://www.opus-codec.org/'
  url 'http://downloads.xiph.org/releases/opus/opusfile-0.3.tar.gz'
  sha1 'fe177d4202a97beb2fad25bd813e20d114345279'

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

  depends_on 'pkg-config' => :build
  depends_on 'opus'
  depends_on 'libogg'

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

end