aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDavid Coeurjolly2013-05-30 18:41:42 +0200
committerAdam Vandenberg2013-06-09 09:05:25 -0700
commit538a0b5b2d564566250005e0ff3b6252ba06732e (patch)
treebd8d6b40580e633cf2870430be0b6f157a62c70d /Library/Formula
parent25c15f64419a59006c72ab18962a90aa85d4b2b1 (diff)
downloadhomebrew-538a0b5b2d564566250005e0ff3b6252ba06732e.tar.bz2
CGAL: Eigen3 and LAPCAK build options added
Closes #20160. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cgal.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/cgal.rb b/Library/Formula/cgal.rb
index be30354c3..c45de74fa 100644
--- a/Library/Formula/cgal.rb
+++ b/Library/Formula/cgal.rb
@@ -6,6 +6,8 @@ class Cgal < Formula
sha1 'df2a873f0a6dd9a7863f85c3de96a4be551f7ffd'
option 'imaging', "Build ImageIO and QT compoments of CGAL"
+ option 'with-eigen3', "Build with Eigen3 support"
+ option 'with-lapack', "Build with LAPACK support"
depends_on 'cmake' => :build
depends_on 'boost'
@@ -13,6 +15,7 @@ class Cgal < Formula
depends_on 'mpfr'
depends_on 'qt' if build.include? 'imaging'
+ depends_on 'eigen' if build.include? 'with-eigen3'
def install
args = ["-DCMAKE_INSTALL_PREFIX=#{prefix}",
@@ -22,6 +25,12 @@ class Cgal < Formula
unless build.include? 'imaging'
args << "-DWITH_CGAL_Qt3=OFF" << "-DWITH_CGAL_Qt4=OFF" << "-DWITH_CGAL_ImageIO=OFF"
end
+ if build.include? 'with-eigen3'
+ args << "-DWITH_Eigen3=ON"
+ end
+ if build.include? 'with-lapack'
+ args << "-DWITH_LAPACK=ON"
+ end
args << '.'
system "cmake", *args
system "make install"