2011-09-23 08:00:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Solid < Formula
|
|
|
|
homepage 'http://www.dtecta.com/'
|
2012-08-26 06:36:02 +00:00
|
|
|
url 'http://www.dtecta.com/files/solid-3.5.6.tgz'
|
2011-09-23 08:00:15 +00:00
|
|
|
sha1 'bd0afef7842f826c270cff32fc23994aec0b0d65'
|
|
|
|
|
2012-08-26 06:36:02 +00:00
|
|
|
option 'enable-doubles', 'Use internal double precision floats'
|
|
|
|
option 'enable-tracer', 'Use rounding error tracer'
|
2011-09-23 08:00:15 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
args = ["--disable-dependency-tracking",
|
|
|
|
"--disable-debug",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--infodir=#{info}" ]
|
2012-08-26 06:36:02 +00:00
|
|
|
args << '--enable-doubles' if build.include? 'enable-doubles'
|
|
|
|
args << '--enable-tracer' if build.include? 'enable-tracer'
|
2011-09-23 08:00:15 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
|
|
|
|
# exclude the examples from compiling!
|
|
|
|
# the examples do not compile because the include statements
|
|
|
|
# for the GLUT library are not platform independent
|
|
|
|
inreplace "Makefile", " examples ", " "
|
|
|
|
|
|
|
|
system "make install"
|
|
|
|
end
|
2011-11-30 18:56:07 +00:00
|
|
|
end
|