aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorFabien Benureau2012-08-03 12:37:18 +0200
committerAdam Vandenberg2013-01-08 12:59:12 -0800
commit8fdf6128b129ff2c078977e318220e5fddb4440f (patch)
tree62bb964858efa7eeab602bee6ff7b094a32e44ec /Library/Formula
parent7f6c9e3b5ea87810c7d9f647241e3892c61ee444 (diff)
downloadhomebrew-8fdf6128b129ff2c078977e318220e5fddb4440f.tar.bz2
ode: add --enable-double-precision
Closes #13912.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ode.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/Library/Formula/ode.rb b/Library/Formula/ode.rb
index 03c42b20b..82c585e32 100644
--- a/Library/Formula/ode.rb
+++ b/Library/Formula/ode.rb
@@ -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