[112014] trunk/dports/math/parmetis/Portfile
ryandesign at macports.org
ryandesign at macports.org
Wed Oct 9 11:05:22 PDT 2013
Revision: 112014
https://trac.macports.org/changeset/112014
Author: ryandesign at macports.org
Date: 2013-10-09 11:05:22 -0700 (Wed, 09 Oct 2013)
Log Message:
-----------
parmetis: add mpich and openmpi variants; license Restrictive (#40715)
Modified Paths:
--------------
trunk/dports/math/parmetis/Portfile
Modified: trunk/dports/math/parmetis/Portfile
===================================================================
--- trunk/dports/math/parmetis/Portfile 2013-10-09 16:36:09 UTC (rev 112013)
+++ trunk/dports/math/parmetis/Portfile 2013-10-09 18:05:22 UTC (rev 112014)
@@ -8,6 +8,9 @@
categories math
platforms darwin
maintainers ryandesign openmaintainer
+# Included license is for "evaluation purposes" only (whatever that means) if
+# you're not a non-profit or US government agency.
+license Restrictive
description ParMETIS - parallel graph partitioning
@@ -19,25 +22,41 @@
checksums rmd160 1e81baf2bafe79b7abed656bff2fa3745966a196 \
sha256 f2d9a231b7cf97f1fee6e8c9663113ebf6c240d407d3c118c55b3633d6be6e5f
-depends_build port:cmake \
- port:mpich-default
+depends_build port:cmake
patchfiles patch-Makefile.diff \
patch-metis-GKlib-GKlibSystem.cmake.diff
-# mpich-default is not universal
-universal_variant no
+# mpich-default and openmpi are not universal
+universal_variant no
-configure.cc ${prefix}/bin/mpicc-mp
-configure.cxx ${prefix}/bin/mpicxx-mp
-
configure.cmd make config
configure.env CONFIG_FLAGS=-DCMAKE_INSTALL_NAME_DIR=${prefix}/lib
configure.pre_args prefix=${prefix}
-configure.args cc=${configure.cc} \
- cxx=${configure.cxx} \
- shared=1
+configure.args shared=1
+variant mpich conflicts openmpi description {Build ParMETIS using MPICH} {
+ depends_build-append port:mpich-default
+
+ configure.cc ${prefix}/bin/mpicc-mp
+ configure.cxx ${prefix}/bin/mpicxx-mp
+}
+
+variant openmpi conflicts mpich description {Build ParMETIS using OpenMPI} {
+ depends_build-append port:openmpi
+
+ configure.cc ${prefix}/bin/openmpicc
+ configure.cxx ${prefix}/bin/openmpicxx
+}
+
+if {![variant_isset openmpi]} {
+ default_variants +mpich
+}
+
+pre-configure {
+ configure.args-append cc=${configure.cc} cxx=${configure.cxx}
+}
+
livecheck.type regex
livecheck.url http://glaros.dtc.umn.edu/gkhome/metis/parmetis/download
livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131009/036c4bcb/attachment.html>
More information about the macports-changes
mailing list