homebrew-core/Formula/libogg.rb

31 lines
687 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Libogg < Formula
2009-12-13 01:36:07 +00:00
homepage 'http://www.xiph.org/ogg/'
url 'http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz'
md5 '0a7eb40b86ac050db3a789ab65fe21c2'
head 'http://svn.xiph.org/trunk/ogg', :using => :svn
if ARGV.build_head?
depends_on "automake" => :build
if MacOS.xcode_version >= "4.3"
depends_on "libtool" => :build
depends_on "autoconf" => :build
end
end
def install
if ARGV.build_head?
system "./autogen.sh"
end
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
ENV.deparallelize
system "make install"
end
2009-12-13 01:36:07 +00:00
end