diff options
| author | Jack Nagel | 2012-05-17 19:45:38 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-05-17 19:45:38 -0500 |
| commit | 522e28fd040e33ed6beeb6cb0ba0c8e5684d2883 (patch) | |
| tree | 16b7290c934a8d3fe0b40999c811d1aa8e411c46 /Library/Formula/ode.rb | |
| parent | 84f4de5bfaee2b06afceda870b4f0e7440acd0e7 (diff) | |
| download | homebrew-522e28fd040e33ed6beeb6cb0ba0c8e5684d2883.tar.bz2 | |
ode: use stable tarball and adjust HEAD build
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/ode.rb')
| -rw-r--r-- | Library/Formula/ode.rb | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/Library/Formula/ode.rb b/Library/Formula/ode.rb index 48e0c9cc4..547d5ae57 100644 --- a/Library/Formula/ode.rb +++ b/Library/Formula/ode.rb @@ -1,21 +1,24 @@ require 'formula' class Ode < Formula - # Build from svn to get Snow Leopard fixes. - url 'http://opende.svn.sourceforge.net/svnroot/opende/trunk', :revision => 1760 - version 'r1760' 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 MacOS.xcode_version >= "4.3" - # find a proper tarball with configure and remove autogen and these deps - depends_on "automake" => :build - depends_on "libtool" => :build + if ARGV.build_head? + # Requires newer automake and libtool + depends_on 'automake' => :build + depends_on 'libtool' => :build end def install - ENV.j1 - system "sh autogen.sh" + 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" |
