ode: add --enable-double-precision

Closes #13912.
This commit is contained in:
Fabien Benureau authored and Adam Vandenberg committed 2013-01-08 12:59:12 -08:00
1 parent 7f6c9e3b5e
commit 8fdf6128b1
1 file changed
+9 -4
+9 -4
View File
@@ -7,21 +7,26 @@ class Ode < Formula
head 'http://opende.svn.sourceforge.net/svnroot/opende/trunk'
option 'enable-double-precision', 'Compile ODE with double precision'
depends_on 'pkg-config' => :build
if build.head?
# Requires newer automake and libtool
depends_on 'automake' => :build
depends_on 'libtool' => :build
depends_on :automake
depends_on :libtool
end
def install
args = ["--prefix=#{prefix}",
"--disable-demos"]
args << "--enable-double-precision" if build.include? 'enable-double-precision'
if build.head?
ENV['LIBTOOLIZE'] = 'glibtoolize'
inreplace 'autogen.sh', 'libtoolize', '$LIBTOOLIZE'
system "./autogen.sh"
end
system "./configure", "--prefix=#{prefix}", "--disable-demos"
system "./configure", *args
system "make"
system "make install"
end