aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorCarmine Paolino2010-10-27 20:06:00 +0200
committerAdam Vandenberg2010-10-27 11:24:38 -0700
commita18c7560eee94113212bc52d5e7a67850d7dc286 (patch)
tree68056c08a261fdbab5a87666b4f8a04bb7f3d00b /Library/Formula
parent2f44614975bf23ed2187bb291a6f546eec0a9587 (diff)
downloadhomebrew-a18c7560eee94113212bc52d5e7a67850d7dc286.tar.bz2
Added option --with-mpi to the Boost formula.
It doesn't need to depend on the open-mpi formula because OS X ships with it. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/boost.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/boost.rb b/Library/Formula/boost.rb
index 202d9da32..36331583e 100644
--- a/Library/Formula/boost.rb
+++ b/Library/Formula/boost.rb
@@ -5,6 +5,10 @@ class Boost <Formula
url 'http://downloads.sourceforge.net/project/boost/boost/1.44.0/boost_1_44_0.tar.bz2'
md5 'f02578f5218f217a9f20e9c30e119c6a'
+ def options
+ [['--with-mpi', "Enables MPI support"]]
+ end
+
def install
fails_with_llvm "LLVM-GCC causes errors with dropped arguments to "+
"functions when linking with boost"
@@ -30,6 +34,7 @@ class Boost <Formula
# Force boost to compile using the GCC 4.2 compiler
open("user-config.jam", "a") do |file|
file.write "using darwin : : #{ENV['CXX']} ;\n"
+ file.write "using mpi ;\n" if ARGV.include? '--with-mpi'
end
# we specify libdir too because the script is apparently broken