aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorFrancois Cocquemas2013-06-20 14:03:36 +0200
committerAdam Vandenberg2013-08-31 08:32:48 -0700
commit191750bb968470dfcea10b8f6740fed319abd4b8 (patch)
tree50aef0be1dd2459d580da6e5372a9bf2e6483f32 /Library/Formula
parent4c0c75b7ba5228d22eec6702fe61df43897c68e4 (diff)
downloadhomebrew-191750bb968470dfcea10b8f6740fed319abd4b8.tar.bz2
Added --with-openblas option to link to OpenBLAS
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/r.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/r.rb b/Library/Formula/r.rb
index 1158109d5..bc0b01b9a 100644
--- a/Library/Formula/r.rb
+++ b/Library/Formula/r.rb
@@ -14,6 +14,7 @@ class R < Formula
head 'https://svn.r-project.org/R/trunk'
+ option 'with-openblas', 'Compile linking to OpenBLAS'
option 'with-valgrind', 'Compile an unoptimized build with support for the Valgrind debugger'
option 'test', 'Run tests before installing'
@@ -23,6 +24,7 @@ class R < Formula
depends_on 'jpeg'
depends_on :x11
depends_on 'valgrind' => :optional
+ depends_on 'homebrew/science/openblas' if build.with? 'openblas'
def install
args = [
@@ -37,6 +39,8 @@ class R < Formula
ENV.Og
end
+ args << '--with-blas="-lgoto2"' if build.with? 'openblas'
+
# Pull down recommended packages if building from HEAD.
system './tools/rsync-recommended' if build.head?