[116365] trunk/dports/science/scotch/Portfile
sean at macports.org
sean at macports.org
Thu Jan 23 12:13:56 PST 2014
Revision: 116365
https://trac.macports.org/changeset/116365
Author: sean at macports.org
Date: 2014-01-23 12:13:56 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
scotch: use mpi portgroup
Modified Paths:
--------------
trunk/dports/science/scotch/Portfile
Modified: trunk/dports/science/scotch/Portfile
===================================================================
--- trunk/dports/science/scotch/Portfile 2014-01-23 20:13:51 UTC (rev 116364)
+++ trunk/dports/science/scotch/Portfile 2014-01-23 20:13:56 UTC (rev 116365)
@@ -2,7 +2,11 @@
# $Id$
PortSystem 1.0
+PortGroup mpi 1.0
+compilers.choose cc cxx
+mpi.setup require
+
name scotch
version 6.0.0
@@ -38,66 +42,20 @@
checksums rmd160 71c0c7d189a35e261a09f239696369e5f41b2508 \
sha256 8206127d038bda868dda5c5a7f60ef8224f2e368298fbb01bf13fa250e378dd4
-# openmpi is not universal
-universal_variant no
patchfiles patch-libscotch-shared.diff \
patch-libscotchmetis-shared.diff
use_configure no
-set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9}
-set default_fortran_variant +gcc48
-
-foreach ver ${gcc_versions} {
- set ver_no_dot [join [split ${ver} "."] ""]
-
- set variant_line {variant gcc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}"}
-
- foreach over ${gcc_versions} {
- if {${ver} == ${over}} {
- continue
- }
-
- set over_no_dot [join [split ${over} "."] ""]
- append variant_line " conflicts gcc${over_no_dot}"
- }
- append variant_line { {}}
-
- eval $variant_line
-
- if {[variant_isset gcc${ver_no_dot}]} {
- if {${default_fortran_variant} != "+gcc${ver_no_dot}"} {
- set default_fortran_variant ""
- }
- }
+if {![mpi_variant_isset]} {
+ default_variants +mpich
}
-if {${default_fortran_variant} != ""} {
- default_variants-append "${default_fortran_variant}"
-}
-
-foreach ver ${gcc_versions} {
- set ver_no_dot [join [split ${ver} "."] ""]
-
- if {[variant_isset gcc${ver_no_dot}]} {
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc${ver_no_dot}
-
- configure.fc ${prefix}/bin/gfortran-mp-${ver}
- configure.f77 ${prefix}/bin/gfortran-mp-${ver}
- configure.f90 ${prefix}/bin/gfortran-mp-${ver}
- }
-}
-
-set archflags [get_canonical_archflags]
-
-depends_lib-append port:openmpi
-
post-extract {
copy ${worksrcpath}/Make.inc/Makefile.inc.i686_mac_darwin8 ${worksrcpath}/Makefile.inc
reinplace "s|-O3|-O3 -fPIC|" ${worksrcpath}/Makefile.inc
reinplace "s|gcc|\$(CC)|" ${worksrcpath}/Makefile.inc
- reinplace "s|mpicc|${prefix}/bin/openmpicc|" ${worksrcpath}/Makefile.inc
+ reinplace "s|mpicc|${mpi.cc}|" ${worksrcpath}/Makefile.inc
# starting with version 6.0, scotch uses a newer version of pthreads which
# Apple hasn't provided, so we disable pthreads for now
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/77f9f7ca/attachment.html>
More information about the macports-changes
mailing list