From 191750bb968470dfcea10b8f6740fed319abd4b8 Mon Sep 17 00:00:00 2001 From: Francois Cocquemas Date: Thu, 20 Jun 2013 14:03:36 +0200 Subject: Added --with-openblas option to link to OpenBLAS Signed-off-by: Adam Vandenberg --- Library/Formula/r.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Formula') 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? -- cgit v1.2.3