[127865] trunk/dports/science/octopus/Portfile
dstrubbe at macports.org
dstrubbe at macports.org
Wed Nov 5 12:05:34 PST 2014
Revision: 127865
https://trac.macports.org/changeset/127865
Author: dstrubbe at macports.org
Date: 2014-11-05 12:05:34 -0800 (Wed, 05 Nov 2014)
Log Message:
-----------
octopus: Enable scalapack support. fftw-3 does not need to have the same Fortran compiler, just some Fortran variant.
Modified Paths:
--------------
trunk/dports/science/octopus/Portfile
Modified: trunk/dports/science/octopus/Portfile
===================================================================
--- trunk/dports/science/octopus/Portfile 2014-11-05 19:51:09 UTC (rev 127864)
+++ trunk/dports/science/octopus/Portfile 2014-11-05 20:05:34 UTC (rev 127865)
@@ -26,7 +26,7 @@
sha256 c43ac301ff035caee667292841c5d9f166da986634cf2623e3f5a8aa86fe7a69
mpi.setup require_fortran -clang -dragonegg -fortran
-compilers.enforce_fortran libxc fftw-3
+compilers.enforce_fortran libxc
depends_lib port:atlas port:libxc port:fftw-3 port:gsl
@@ -40,6 +40,7 @@
configure.optflags -O3
default_variants +newuoa
+# FIXME: does this not happen in time to make fftw-3 get installed +gcc48?
if {![fortran_variant_isset]} {
default_variants +gcc48
}
@@ -48,6 +49,12 @@
patchfiles patch-testsuite-periodic_systems-07-tb09.test.diff \
patch-testsuite-functionals-03-xc.test.diff
+pre-fetch {
+ if {[fortran_active_variant_name fftw-3] eq ""} {
+ ui_error "Install fftw-3 with a Fortran variant."
+ return -code error "fftw-3 not installed with a Fortran variant."
+ }
+}
pre-configure {
configure.args-append FCCPP="${configure.cpp} -E -ansi"
@@ -106,6 +113,17 @@
depends_lib-append port:gd2
}
+variant scalapack description {Build with ScaLAPACK} {
+ configure.args-delete --with-blacs=no
+ configure.args-delete --with-scalapack=no
+ configure.args-append --with-blacs=-lscalapack
+ depends_lib-append port:scalapack
+
+ mpi.setup require
+ # FIXME: this unnecessarily enforces scalapack had same C compiler as we are using.
+ mpi.enforce_variant scalapack
+}
+
livecheck.type regex
livecheck.url ${homepage}/wiki/index.php/Main_Page
livecheck.regex ${name} (\[0-9.\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141105/5fd50b66/attachment.html>
More information about the macports-changes
mailing list