b1e3e3b9d7
The version currently in-tree (2.1.3) is broken on 10.9.1 due to clang errors, but this one compiles out of the box. Closes Homebrew/homebrew#25821. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
33 lines
774 B
Ruby
33 lines
774 B
Ruby
require 'formula'
|
|
|
|
class Clasp < Formula
|
|
homepage 'http://potassco.sourceforge.net/'
|
|
url 'http://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.factory("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
|