Ticket #13743: Portfile.2.diff

File Portfile.2.diff, 1.1 KB (added by takeshi@…, 17 years ago)
  • Portfile

    old new  
    3939build.dir       ${configure.dir}
    4040
    4141destroot.dir    ${build.dir}
     42set wrappers {mpirun mpiexec mpicc mpicxx mpic++}
    4243post-destroot {
    43         foreach bin { mpicc mpirun } {
     44        foreach bin $wrappers {
    4445                system "cd ${destroot}${prefix}/bin \
    45                         && ln -sf ${prefix}/lib/${name}/bin/${bin} open${bin}"
     46                        && ln -sf ${prefix}/lib/${name}/bin/${bin} ${bin}"
    4647        }
    4748}
    4849
     
    5960        # gcc42. Too bad that the actual gfortran binary in gcc42 is called
    6061        # gfortran-mp-4.2, otherwise we could just say bin:gfortran:gcc42.
    6162        depends_build port:gcc42
     63        lappend wrappers mpif77 mpif90
     64}
     65
     66variant g95 {
     67        configure.args-delete --disable-f77 --disable-f90
     68        configure.args-append --enable-f77 --enable-f90
     69        configure.f77   ${prefix}/bin/g95
     70        configure.fc    ${prefix}/bin/g95
     71        depends_build port:g95
     72        lappend wrappers mpif77 mpif90
    6273}
    6374
    6475livecheck.check regex
    6576livecheck.url   http://www.open-mpi.org/software/
    6677livecheck.regex openmpi-(\[0-9\.\]+).tar.bz2
     78