ode: add enable-libccd option

Closes Homebrew/homebrew#28854.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Cyril Picard 2014-04-30 14:06:04 +02:00 committed by Adam Vandenberg
parent c7e79166af
commit 71d5fb4b9f
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class Ode < Formula
end
option 'enable-double-precision', 'Compile ODE with double precision'
option 'enable-libccd', 'enable all libccd colliders (except box-cylinder)'
depends_on 'pkg-config' => :build
@ -21,6 +22,7 @@ class Ode < Formula
args = ["--prefix=#{prefix}",
"--disable-demos"]
args << "--enable-double-precision" if build.include? 'enable-double-precision'
args << "--enable-libccd" if build.include? "enable-libccd"
if build.head?
ENV['LIBTOOLIZE'] = 'glibtoolize'