[116350] trunk/dports/devel/valgrind-devel/Portfile

sean at macports.org sean at macports.org
Thu Jan 23 12:13:00 PST 2014


Revision: 116350
          https://trac.macports.org/changeset/116350
Author:   sean at macports.org
Date:     2014-01-23 12:12:59 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
valgrind-devel: use mpi portgroup

Modified Paths:
--------------
    trunk/dports/devel/valgrind-devel/Portfile

Modified: trunk/dports/devel/valgrind-devel/Portfile
===================================================================
--- trunk/dports/devel/valgrind-devel/Portfile	2014-01-23 20:12:56 UTC (rev 116349)
+++ trunk/dports/devel/valgrind-devel/Portfile	2014-01-23 20:12:59 UTC (rev 116350)
@@ -1,12 +1,18 @@
 # $Id$
 
 PortSystem 1.0
+PortGroup  mpi 1.0
 
+compilers.choose cc cxx
+mpi.choose
+mpi.setup
+
 name            valgrind-devel
 conflicts       valgrind
 svn.revision    13710
 set vex_revision 2797
 version         3.9.0-r${svn.revision}
+revision        1
 categories      devel
 platforms       darwin
 supported_archs i386 x86_64
@@ -62,17 +68,11 @@
     }
 }
 
-variant mpich2 requires mpich description {Compatibility variant, renamed to +mpich} {}
-variant mpich description {Use mpich for MPI support} conflicts universal {
-    depends_lib-append path:bin/mpicc-mp:mpich-default
-    configure.args-delete --without-mpicc
-    configure.args-append --with-mpicc=${prefix}/bin/mpicc-mp
+pre-configure {
+    if {[mpi_variant_isset]} {
+        configure.args-delete --without-mpicc
+        configure.args-append --with-mpicc=${mpi.cc}
+    }
 }
 
-variant openmpi description {Use openmpi for MPI support} conflicts universal {
-    depends_lib-append port:openmpi
-    configure.args-delete --without-mpicc
-    configure.args-append --with-mpicc=${prefix}/bin/openmpicc
-}
-
 livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/7c5a8b3f/attachment.html>


More information about the macports-changes mailing list