2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-18 08:53:36 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libvorbis < Formula
|
2009-12-13 01:36:07 +00:00
|
|
|
homepage 'http://vorbis.com'
|
2012-06-14 08:31:09 +00:00
|
|
|
url 'http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.xz'
|
|
|
|
sha1 '31d1a0ec4815bf1ee638b0f2850f03efcd48022a'
|
2009-06-18 08:53:36 +00:00
|
|
|
|
2012-05-10 14:10:12 +00:00
|
|
|
head 'http://svn.xiph.org/trunk/vorbis'
|
2012-03-22 14:24:32 +00:00
|
|
|
|
2012-06-14 08:31:09 +00:00
|
|
|
depends_on 'xz' => :build
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2009-09-18 18:16:39 +00:00
|
|
|
depends_on 'libogg'
|
2009-06-18 08:53:36 +00:00
|
|
|
|
2012-03-22 14:24:32 +00:00
|
|
|
if ARGV.build_head?
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :autoconf
|
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
2012-03-22 14:24:32 +00:00
|
|
|
end
|
|
|
|
|
2009-06-18 08:53:36 +00:00
|
|
|
def install
|
2012-07-07 18:08:22 +00:00
|
|
|
system "./autogen.sh" if ARGV.build_head?
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2009-06-18 08:53:36 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2009-12-13 01:36:07 +00:00
|
|
|
end
|