aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libvorbis.rb
blob: 0b1e659f877b520cd4b5ca007ed52dcac267fa27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'formula'

class Libvorbis < Formula
  homepage 'http://vorbis.com'
  url 'http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.xz'
  sha1 '31d1a0ec4815bf1ee638b0f2850f03efcd48022a'

  head 'http://svn.xiph.org/trunk/vorbis'

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

  if ARGV.build_head?
    depends_on :autoconf
    depends_on :automake
    depends_on :libtool
  end

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