[144804] trunk/dports/science/relax3d/Portfile
dstrubbe at macports.org
dstrubbe at macports.org
Mon Jan 18 13:06:09 PST 2016
Revision: 144804
https://trac.macports.org/changeset/144804
Author: dstrubbe at macports.org
Date: 2016-01-18 13:06:09 -0800 (Mon, 18 Jan 2016)
Log Message:
-----------
relax3d: Use compilers portgroup for Fortran variants.
Modified Paths:
--------------
trunk/dports/science/relax3d/Portfile
Modified: trunk/dports/science/relax3d/Portfile
===================================================================
--- trunk/dports/science/relax3d/Portfile 2016-01-18 21:01:27 UTC (rev 144803)
+++ trunk/dports/science/relax3d/Portfile 2016-01-18 21:06:09 UTC (rev 144804)
@@ -2,7 +2,7 @@
# $Id$
PortSystem 1.0
-PortGroup active_variants 1.1
+PortGroup compilers 1.0
name relax3d
version 1.0.4
@@ -33,6 +33,11 @@
# gmt4 is not universal
universal_variant no
+compilers.choose fc
+compilers.setup require_fortran -g95
+compilers.enforce_fortran fftw-3-single
+# note: openmp is always used; hence g95 cannot be
+
configure.cmd "./waf configure"
configure.args --use-fftw \
--fftw-dir=${prefix} \
@@ -53,26 +58,3 @@
${destroot}${prefix}/share/man/man1/relax.1
}
-variant gcc45 conflicts gcc46 gcc47 gcc48 description {Compile with gcc 4.5} {
- configure.compiler macports-gcc-4.5
- require_active_variants fftw-3-single gcc45
-}
-
-variant gcc46 conflicts gcc45 gcc47 gcc48 description {Compile with gcc 4.6} {
- configure.compiler macports-gcc-4.6
- require_active_variants fftw-3-single gcc46
-}
-
-variant gcc47 conflicts gcc45 gcc46 gcc48 description {Compile with gcc 4.7} {
- configure.compiler macports-gcc-4.7
- require_active_variants fftw-3-single gcc47
-}
-
-variant gcc48 conflicts gcc45 gcc46 gcc47 description {Compile with gcc 4.8} {
- configure.compiler macports-gcc-4.8
- require_active_variants fftw-3-single gcc48
-}
-
-if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc48]} {
- default_variants +gcc47
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160118/52a89f78/attachment.html>
More information about the macports-changes
mailing list