Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ode: add --enable-double-precision

Closes #13912.
  • Loading branch information...
commit 776d8ce8be2d2b95e80eb77647e53be96feaa863 1 parent 62edeb2
@humm humm authored yourabi committed
Showing with 9 additions and 4 deletions.
  1. +9 −4 Library/Formula/ode.rb
View
13 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
Please sign in to comment.
Something went wrong with that request. Please try again.