homebrew-core/Formula/ode.rb

37 lines
1,018 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Ode < Formula
homepage 'http://www.ode.org/'
url 'https://downloads.sourceforge.net/project/opende/ODE/0.13/ode-0.13.tar.bz2'
sha1 '0279d58cc390ff5cc048f2baf96cff23887f3838'
2013-09-22 01:47:32 +00:00
head do
url 'http://opende.svn.sourceforge.net/svnroot/opende/trunk'
2013-11-13 17:01:29 +00:00
depends_on :autoconf
depends_on :automake
depends_on :libtool
end
2013-09-22 01:47:32 +00:00
option 'enable-double-precision', 'Compile ODE with double precision'
option 'enable-libccd', 'enable all libccd colliders (except box-cylinder)'
2013-09-22 01:47:32 +00:00
depends_on 'pkg-config' => :build
def install
args = ["--prefix=#{prefix}",
"--disable-demos"]
args << "--enable-double-precision" if build.include? 'enable-double-precision'
args << "--enable-libccd" if build.include? "enable-libccd"
2012-08-27 05:49:12 +00:00
if build.head?
ENV['LIBTOOLIZE'] = 'glibtoolize'
inreplace 'autogen.sh', 'libtoolize', '$LIBTOOLIZE'
system "./autogen.sh"
end
system "./configure", *args
system "make"
system "make install"
end
end