[92770] trunk/dports/lang/omnixmp/Portfile
takeshi at macports.org
takeshi at macports.org
Sun May 6 04:10:23 PDT 2012
Revision: 92770
https://trac.macports.org/changeset/92770
Author: takeshi at macports.org
Date: 2012-05-06 04:10:23 -0700 (Sun, 06 May 2012)
Log Message:
-----------
omnixmp: added gcc46 and mpich2 variants
Modified Paths:
--------------
trunk/dports/lang/omnixmp/Portfile
Modified: trunk/dports/lang/omnixmp/Portfile
===================================================================
--- trunk/dports/lang/omnixmp/Portfile 2012-05-06 11:03:24 UTC (rev 92769)
+++ trunk/dports/lang/omnixmp/Portfile 2012-05-06 11:10:23 UTC (rev 92770)
@@ -5,7 +5,7 @@
name omnixmp
version 0.5.4
-revision 1
+revision 2
categories lang devel parallel
maintainers takeshi
description Omni OpenMP/XcalableMP Compiler
@@ -19,8 +19,7 @@
checksums rmd160 ba684fab05adccf0fa74eddfe676ca2bcbef3621 \
sha256 234202058c4c214b99eeb0c434c466ddf1d18bbf3fc12e4170bcf764fd19ef18
-depends_lib port:openmpi \
- port:flex \
+depends_lib port:flex \
port:gmp \
port:libxml2
@@ -39,14 +38,21 @@
--disable-xmpgpu \
--with-gmpLibDir=${prefix}/lib \
--with-gmpIncDir=${prefix}/include \
- --with-mpicc=${prefix}/lib/openmpi/bin/mpicc \
--with-cflag=${configure.cflags} \
--with-cppflag="${configure.cppflags} -I${prefix}/include/libxml2 -I/usr/include -DSIMPLE_SPIN"
-if {![variant_isset gcc44]} {
+post-destroot {
+ ln -s ${prefix}/lib/${name}/bin/xmpcc ${destroot}${prefix}/bin
+}
+
+if {![variant_isset gcc44] && ![variant_isset gcc46]} {
default_variants +gcc45
}
+if {![variant_isset mpich2]} {
+ default_variants +openmpi
+}
+
use_parallel_build no
variant gcc44 conflicts gcc45 description {use gfortran-mp-4.4 as backend fortran compiler} {
@@ -59,6 +65,20 @@
configure.compiler macports-gcc-4.5
}
+variant gcc46 conflicts gcc44 gcc45 description {use gfortran-mp-4.6 as backend fortran compiler} {
+ depends_lib-append port:gcc46
+ configure.compiler macports-gcc-4.6
+}
+
+variant openmpi conflicts mpich2 description {build with OpenMPI} {
+ depends_lib-append port:openmpi
+ configure.args-append --with-mpicc=${prefix}/lib/openmpi/bin/mpicc
+}
+
+variant mpich2 conflicts openmpi description {build with MPICH2} {
+ depends_lib-append port:mpich2
+ configure.args-append --with-mpicc=${prefix}/bin/mpicc
+}
+
notes \
- ${name} is installed in ${prefix}/lib/${name}.\n\
- Add ${prefix}/lib/${name}/bin to PATH.
+ ${name} is installed in ${prefix}/lib/${name}.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120506/4f07460d/attachment.html>
More information about the macports-changes
mailing list