blob: c020c2981e5025c71f008d24daddc00fd13c3888 (
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
33
|
require 'formula'
class Clasp < Formula
homepage 'http://potassco.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/potassco/clasp/2.1.4/clasp-2.1.4-source.tar.gz'
sha1 '4c6ec3ee2f68fd5f9b3574ebb5a8b069d65d12df'
option 'with-mt', 'Enable multi-thread support'
depends_on 'tbb' if build.include? 'with-mt'
def install
if build.include? 'with-mt'
ENV['TBB30_INSTALL_DIR'] = Formula["tbb"].opt_prefix
build_dir = 'build/release_mt'
else
build_dir = 'build/release'
end
args = %W[
--config=release
--prefix=#{prefix}
]
args << "--with-mt" if build.include? 'with-mt'
bin.mkpath
system "./configure.sh", *args
cd build_dir do
system "make install"
end
end
end
|