homebrew-core/Formula/ode.rb
Jack Nagel d5e577e400 ode: use stable tarball and adjust HEAD build
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-17 19:45:38 -05:00

26 lines
701 B
Ruby

require 'formula'
class Ode < Formula
homepage 'http://www.ode.org/'
url 'http://sourceforge.net/projects/opende/files/ODE/0.12/ode-0.12.tar.bz2'
sha1 '98ceaba7d1b947fba1c793c5d990c399624f1c47'
head 'http://opende.svn.sourceforge.net/svnroot/opende/trunk'
if ARGV.build_head?
# Requires newer automake and libtool
depends_on 'automake' => :build
depends_on 'libtool' => :build
end
def install
if ARGV.build_head?
ENV['LIBTOOLIZE'] = 'glibtoolize'
inreplace 'autogen.sh', 'libtoolize', '$LIBTOOLIZE'
system "./autogen.sh"
end
system "./configure", "--prefix=#{prefix}", "--disable-demos"
system "make"
system "make install"
end
end