Ticket #13743: Portfile.diff

File Portfile.diff, 1.4 KB (added by takeshi@…, 16 years ago)
  • Portfile

    old new  
    3939build.dir       ${configure.dir}
    4040
    4141destroot.dir    ${build.dir}
     42set wrappers {mpicc mpicxx mpic++}
    4243post-destroot {
    43         foreach bin { mpicc mpirun } {
     44        foreach bin {mpirun mpiexec} {
    4445                system "cd ${destroot}${prefix}/bin \
    45                         && ln -sf ${prefix}/lib/${name}/bin/${bin} open${bin}"
     46                        && ln -sf ${prefix}/lib/${name}/bin/orterun open${bin}"
     47        }
     48        foreach bin $wrappers {
     49                system "cd ${destroot}${prefix}/bin \
     50                        && ln -sf ${prefix}/lib/${name}/bin/opal_wrapper open${bin}"
     51                system "cd ${destroot}${prefix}/share/${name} \
     52      && ln -sf ${prefix}/share/${name}/${bin}-wrapper-data.txt \
     53                                    open${bin}-wrapper-data.txt"
    4654        }
    4755}
    4856
     
    5967        # gcc42. Too bad that the actual gfortran binary in gcc42 is called
    6068        # gfortran-mp-4.2, otherwise we could just say bin:gfortran:gcc42.
    6169        depends_build port:gcc42
     70        lappend wrappers mpif77 mpif90
     71}
     72
     73variant g95 {
     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_build port:g95
     79        lappend wrappers mpif77 mpif90
    6280}
    6381
    6482livecheck.check regex
    6583livecheck.url   http://www.open-mpi.org/software/
    6684livecheck.regex openmpi-(\[0-9\.\]+).tar.bz2
     85