aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-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?