[100485] trunk/dports/math/petsc/Portfile
mmoll at macports.org
mmoll at macports.org
Thu Dec 13 21:35:09 PST 2012
Revision: 100485
https://trac.macports.org/changeset/100485
Author: mmoll at macports.org
Date: 2012-12-13 21:35:08 -0800 (Thu, 13 Dec 2012)
Log Message:
-----------
math/petsc: add variants for accelerate framework and atlas as LAPACK alternatives. should fix #35542
Modified Paths:
--------------
trunk/dports/math/petsc/Portfile
Modified: trunk/dports/math/petsc/Portfile
===================================================================
--- trunk/dports/math/petsc/Portfile 2012-12-14 04:44:10 UTC (rev 100484)
+++ trunk/dports/math/petsc/Portfile 2012-12-14 05:35:08 UTC (rev 100485)
@@ -5,7 +5,7 @@
name petsc
version 3.3-p3
-revision 1
+revision 2
categories math science
maintainers mmoll
description Portable, Extensible Toolkit for Scientific Computation
@@ -83,8 +83,24 @@
--with-mpiexec=${prefix}/bin/mpiexec
}
-default_variants +openmpi
+variant accelerate description {Use Accelerate framework for LAPACK} conflicts atlas {
+ configure.args-append \
+ --with-blas-lib=/usr/lib/libblas.dylib \
+ --with-lapack-lib=/usr/lib/liblapack.dylib
+}
+variant atlas description {Use Atlas for LAPACK} conflicts accelerate {
+ configure.args-append \
+ --with-blas-lapack-lib=${prefix}/lib/libtatlas.dylib
+}
+
+if {![variant_isset mpich2]} {
+ default_variants +openmpi
+}
+if {![variant_isset atlas]} {
+ default_variants +accelerate
+}
+
destroot.destdir DESTDIR=${destroot}${prefix}/lib/petsc
livecheck.type regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121213/bc816def/attachment.html>
More information about the macports-changes
mailing list