Ticket #15058: Portfile.diff

File Portfile.diff, 6.3 KB (added by jochen@…, 16 years ago)

corresponding patch

  • Portfile

     
     1# -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
    12# $Id$
    23
    34PortSystem 1.0
     
    23
    3 name                    openmpi
    4 version                 1.2.6
    5 categories              science parallel net
    6 platforms               darwin
    7 maintainers             mww
    8 description             A High Performance Message Passing Library
    9 long_description        Open MPI is a project combining technologies and resources \
    10                         from several other projects (FT-MPI, LA-MPI, LAM/MPI, and \
    11                         PACX-MPI) in order to build the best MPI library available. A \
    12                         completely new MPI-2 compliant implementation, Open MPI offers \
    13                         advantages for system and software vendors, application developers \
    14                         and computer science researchers.
     4name            openmpi
     5version         1.2.6
     6categories      science parallel net
     7platforms       darwin
     8maintainers     mww
     9description     A High Performance Message Passing Library
     10long_description Open MPI is a project combining technologies and resources \
     11                from several other projects (FT-MPI, LA-MPI, LAM/MPI, and \
     12                PACX-MPI) in order to build the best MPI library available. A \
     13                completely new MPI-2 compliant implementation, Open MPI offers \
     14                advantages for system and software vendors, application developers \
     15                and computer science researchers.
    1516
    16 homepage                http://www.open-mpi.org/
    17 set subdir              ompi/v1.2/downloads/
    18 master_sites            http://www.open-mpi.org/software/${subdir} \
    19                         http://www.open-mpi.de/software/${subdir} \
    20                         http://icl.cs.utk.edu/open-mpi/${subdir} \
    21                         freebsd
    22 checksums               md5 f126793b68e71f5ec4a192c40675af2d \
    23                         sha1 b2960e2fd7432816cb70302a6b6c2f55fbd62cab
    24 use_bzip2               yes
     17homepage        http://www.open-mpi.org/
     18set subdir      ompi/v1.2/downloads/
     19master_sites    http://www.open-mpi.org/software/${subdir} \
     20                http://www.open-mpi.de/software/${subdir} \
     21                http://icl.cs.utk.edu/open-mpi/${subdir} \
     22                freebsd
     23checksums       md5 f126793b68e71f5ec4a192c40675af2d \
     24                sha1 b2960e2fd7432816cb70302a6b6c2f55fbd62cab
     25use_bzip2       yes
    2526
    2627pre-extract { file mkdir ${workpath}/build }
    2728
    28 configure.dir   ${workpath}/build
    29 configure.cmd   ${worksrcpath}/configure
    30 configure.args  --disable-f77 --disable-f90 \
    31                 --with-xgrid \
    32                 --sysconfdir=${prefix}/etc/${name} \
    33                 --includedir=${prefix}/include/${name} \
    34                 --bindir=${prefix}/lib/${name}/bin \
    35                 --mandir=${prefix}/share/man
     29configure.dir   ${workpath}/build
     30configure.cmd   ${worksrcpath}/configure
     31configure.args  --disable-f77 --disable-f90 \
     32                --with-xgrid \
     33                --sysconfdir=${prefix}/etc/${name} \
     34                --includedir=${prefix}/include/${name} \
     35                --bindir=${prefix}/lib/${name}/bin \
     36                --mandir=${prefix}/share/man
    3637
    37 build.dir       ${configure.dir}
     38build.dir       ${configure.dir}
    3839
    39 destroot.dir    ${build.dir}
    40 set wrappers    {mpicc mpicxx mpic++}
     40destroot.dir    ${build.dir}
     41set wrappers    {mpicc mpicxx mpic++}
    4142post-destroot {
    42         foreach bin {mpirun mpiexec} {
    43                 system "cd ${destroot}${prefix}/bin \
    44                         && ln -sf ${prefix}/lib/${name}/bin/orterun open${bin}"
    45         }
    46         foreach bin ${wrappers} {
    47                 system "cd ${destroot}${prefix}/bin \
    48                         && ln -sf ${prefix}/lib/${name}/bin/opal_wrapper open${bin}"
    49                 system "cd ${destroot}${prefix}/share/${name} \
    50                 && ln -sf ${prefix}/share/${name}/${bin}-wrapper-data.txt \
    51                         open${bin}-wrapper-data.txt"
    52         }
     43    foreach bin {mpirun mpiexec} {
     44        system "cd ${destroot}${prefix}/bin \
     45            && ln -sf ${prefix}/lib/${name}/bin/orterun open${bin}"
     46    }
     47    foreach bin ${wrappers} {
     48        system "cd ${destroot}${prefix}/bin \
     49            && ln -sf ${prefix}/lib/${name}/bin/opal_wrapper open${bin}"
     50        system "cd ${destroot}${prefix}/share/${name} \
     51            && ln -sf ${prefix}/share/${name}/${bin}-wrapper-data.txt \
     52            open${bin}-wrapper-data.txt"
     53    }
    5354}
    5455
    55 variant gcc42 description {build mpif77 and mpif90 using gcc42} conflicts gcc43 g95 {
    56         configure.args-delete --disable-f77 --disable-f90
    57         configure.args-append --enable-f77 --enable-f90
    58         configure.f77         ${prefix}/bin/gfortran-mp-4.2
    59         configure.fc          ${prefix}/bin/gfortran-mp-4.2
    60         depends_lib-append    port:gcc42
    61         lappend wrappers mpif77 mpif90
     56variant fortran description {build mpif77 and mpif90} conflicts gcc42 g95 {
     57    if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset g95] } {
     58        default_variants        +gcc43
     59    }
     60    configure.args-delete --disable-f77 --disable-f90
     61    configure.args-append --enable-f77 --enable-f90
     62    lappend wrappers mpif77 mpif90
    6263}
    6364
    64 variant gcc43 description {build mpif77 and mpif90 using gcc43} conflicts gcc42 g95 {
    65         configure.args-delete --disable-f77 --disable-f90
    66         configure.args-append --enable-f77 --enable-f90
    67         configure.f77         ${prefix}/bin/gfortran-mp-4.3
    68         configure.fc          ${prefix}/bin/gfortran-mp-4.3
    69         depends_lib-append    port:gcc43
    70         lappend wrappers mpif77 mpif90
     65variant gcc42 conflicts gcc43 g95 description {Use gcc42 for compilation of OpenMPI and as base-compiler for wrappers} {
     66    depends_lib-append    port:gcc42
     67    configure.compiler    macports-gcc-4.2
    7168}
    7269
    73 variant g95 description {build mpif77 and mpif90 using g95} conflicts gcc42 gcc43 {
    74         configure.args-delete --disable-f77 --disable-f90
    75         configure.args-append --enable-f77 --enable-f90
    76         configure.f77         ${prefix}/bin/g95
    77         configure.fc          ${prefix}/bin/g95
    78         depends_lib-append    port:g95
    79         lappend wrappers mpif77 mpif90
     70variant gcc43 conflicts gcc42 g95 description {Use gcc43 for compilation of OpenMPI and as base-compiler for wrappers} {
     71    depends_lib-append    port:gcc43
     72    configure.compiler    macports-gcc-4.3
    8073}
    8174
    82 livecheck.check regex
    83 livecheck.url   http://www.open-mpi.org/software/
    84 livecheck.regex openmpi-(\[0-9\.\]+).tar.bz2
     75variant g95 conflicts gcc42 gcc43 description {Use g95 to build fortran variant} {
     76    depends_lib-append    port:g95
     77    configure.f77         ${prefix}/bin/g95
     78    configure.fc          ${prefix}/bin/g95
     79}
    8580
     81livecheck.check regex
     82livecheck.url   http://www.open-mpi.org/software/
     83livecheck.regex openmpi-(\[0-9\.\]+).tar.bz2