homebrew-core/Formula/libogg.rb
Steven Yi 102904ca7d libogg: add --universal
Closes Homebrew/homebrew#19739.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-12 10:52:08 -07:00

28 lines
640 B
Ruby

require 'formula'
class Libogg < Formula
homepage 'http://www.xiph.org/ogg/'
url 'http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz'
sha1 'a900af21b6d7db1c7aa74eb0c39589ed9db991b8'
head 'http://svn.xiph.org/trunk/ogg'
option :universal
if build.head?
depends_on :autoconf
depends_on :automake
depends_on :libtool
end
def install
ENV.universal_binary if build.universal?
system "./autogen.sh" if build.head?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
ENV.deparallelize
system "make install"
end
end