blob: 01f6dfe38146a71f77b06c33849ce7e45a1fe6a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
require 'formula'
class Solid < Formula
url 'http://www.dtecta.com/files/solid-3.5.6.tgz'
homepage 'http://www.dtecta.com/'
sha1 'bd0afef7842f826c270cff32fc23994aec0b0d65'
def options
[
[ '--enable-doubles', 'Use internal double precision floats' ],
[ '--enable-tracer', 'Use rounding error tracer' ]
]
end
def install
args = ["--disable-dependency-tracking",
"--disable-debug",
"--prefix=#{prefix}",
"--infodir=#{info}" ]
args << '--enable-doubles' if ARGV.include? '--enable-doubles'
args << '--enable-tracer' if ARGV.include? '--enable-tracer'
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
end
|