Ticket #13743: Portfile.diff
File Portfile.diff, 1.4 KB (added by takeshi@…, 17 years ago) |
---|
-
Portfile
old new 39 39 build.dir ${configure.dir} 40 40 41 41 destroot.dir ${build.dir} 42 set wrappers {mpicc mpicxx mpic++} 42 43 post-destroot { 43 foreach bin { mpicc mpirun} {44 foreach bin {mpirun mpiexec} { 44 45 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" 46 54 } 47 55 } 48 56 … … 59 67 # gcc42. Too bad that the actual gfortran binary in gcc42 is called 60 68 # gfortran-mp-4.2, otherwise we could just say bin:gfortran:gcc42. 61 69 depends_build port:gcc42 70 lappend wrappers mpif77 mpif90 71 } 72 73 variant 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 62 80 } 63 81 64 82 livecheck.check regex 65 83 livecheck.url http://www.open-mpi.org/software/ 66 84 livecheck.regex openmpi-(\[0-9\.\]+).tar.bz2 85