Ticket #22461: Portfile.orig

File Portfile.orig, 2.5 KB (added by numaryu, 15 years ago)
Line 
1# $Id: Portfile 57273 2009-09-08 15:00:42Z macsforever2000@macports.org $
2
3PortSystem          1.0
4name                mpich2
5version             1.0.8
6categories          science parallel net
7platforms           darwin
8maintainers         nomaintainer
9description         Message Passing Interface (MPI) Library
10long_description \
11   MPICH2 is an implementation of the Message-Passing Interface (MPI). The \
12   goals of MPICH2 are to provide an MPI implementation for important \
13   platforms, including clusters, SMPs, and massively parallel processors. \
14   It also provides a vehicle for MPI implementation research and for \
15   developing new and better parallel programming environments.
16
17homepage            http://www-unix.mcs.anl.gov/mpi/mpich2/
18master_sites        http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${version}/
19checksums           md5     d9dfb6e38d7ca6f8ad92a191a413ee57 \
20                    sha1    41d6f6ce1034ecec5c14fb03592730ae2dd071e5 \
21                    rmd160  646cf50fbdc60a49809f4d0a6bcaf2835844db1f
22patchfiles          patch-Makefile.in patch-src-util-createshlib.in
23
24depends_lib         port:python25
25
26# the default include-dir conflicts with openmpi!
27configure.args      --with-thread-package=posix \
28                    --enable-timer-type=gettimeofday \
29                    --enable-cxx \
30                    --mandir=${prefix}/share/man \
31                    --with-htmldir=${prefix}/share/doc/${name} \
32                    --includedir=${prefix}/include/${name} \
33                    --with-docdir=${prefix}/share/doc/${name} \
34                    --with-python=${prefix}/bin/python2.5 \
35                    --disable-f77 --disable-f90
36
37use_parallel_build  no
38
39variant g95 description {Enable Fortran 77 and Fortran 90 bindings using g95} conflicts gfortran {
40   depends_lib-append      port:g95
41   configure.f77           "${prefix}/bin/g95"
42   configure.fflags        "-i4"
43   configure.f90           "${prefix}/bin/g95"
44   configure.f90flags      "-i4"
45   configure.args-append   --enable-f77 --enable-f90
46}
47
48variant gfortran description {Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc43} conflicts g95 {
49   depends_lib-append   port:gcc43
50   configure.f77        "${prefix}/bin/gfortran-mp-4.3"
51   configure.f90        "${prefix}/bin/gfortran-mp-4.3"
52   configure.args-append   --enable-f77 --enable-f90
53}
54
55variant gforker description {Use gforker process manager instead of the default mpd} {
56   configure.args-append   --with-pm=gforker
57}
58
59platform darwin {
60   configure.args-append   --enable-sharedlibs=osx-gcc
61}
62