Ticket #34369: Portfile.diff
File Portfile.diff, 839 bytes (added by numaryu, 13 years ago) |
---|
-
Portfile
old new 25 25 26 26 # openmpi does not have a universal variant 27 27 universal_variant no 28 depends_build port:openmpi 28 #depends_build port:openmpi 29 depends_build port:mpich2 29 30 configure.args-append --enable-mpi home=${worksrcpath} 30 31 if { ${build_arch}=="x86_64" || ${build_arch}=="ppc64" } { 31 32 configure.args-append FFLAGS='-O2 -m64' LDFLAGS='-L${prefix}/lib' 32 33 } else { 33 34 configure.args-append FFLAGS='-O2 -m32' LDFLAGS='-L${prefix}/lib' 34 35 } 35 configure.env-append MPIF77=${prefix}/bin/openmpif77 36 #configure.env-append MPIF77=${prefix}/bin/openmpif77 37 configure.env-append MPIF77=${prefix}/bin/mpif77 38 configure.args-append FFLAGS='-I${prefix}/include/mpich2' 36 39 37 40 pre-fetch { 38 41 if {"darwin" == ${os.platform} && ${os.major} < 9} {