Ticket #35457: Portfile.diff
File Portfile.diff, 3.9 KB (added by numaryu, 12 years ago) |
---|
-
Portfile
old new 62 62 } 63 63 64 64 65 variant threadsafe description {Enable threadsafety (experimental and un-supported, disables cxx support)} conflicts openmpi {65 variant threadsafe description {Enable threadsafety (experimental and un-supported, disables cxx support)} conflicts openmpi mpich2 { 66 66 configure.args-delete --disable-threadsafe --enable-cxx 67 67 configure.args-append --enable-threadsafe --disable-cxx 68 68 } 69 69 70 70 # openmpi conflicts with universal because there is no universal variant for 71 71 # the openmpi port at the moment 72 variant openmpi description {Enable Parallel HDF5 } conflicts threadsafe universal{72 variant openmpi description {Enable Parallel HDF5 with openmpi} conflicts threadsafe universal mpich2 { 73 73 depends_lib-append port:openmpi 74 74 configure.cc ${prefix}/bin/openmpicc 75 75 configure.args-delete --disable-parallel --enable-cxx … … 77 77 } 78 78 79 79 80 variant mpich2 description {Enable Parallel HDF5 with mpich2} conflicts threadsafe universal openmpi { 81 depends_lib-append port:mpich2 82 configure.cc ${prefix}/bin/mpicc 83 # configure.args-delete --disable-parallel --enable-cxx 84 # configure.args-append --enable-parallel --disable-cxx 85 configure.args-delete --disable-parallel 86 configure.args-append --enable-parallel --enable-unsupported 87 if { [variant_isset gcc44] || [variant_isset gcc45] } { 88 configure.fc ${prefix}/bin/mpif90 89 } 90 } 91 80 92 variant gcc44 description {Enable Fortran bindings (gfortran 4.4)} conflicts threadsafe universal gcc45 gcc46 { 81 93 depends_lib-append port:gcc44 94 configure.compiler macports-gcc-4.4 82 95 configure.fc ${prefix}/bin/gfortran-mp-4.4 83 96 if { [variant_isset openmpi] } { 84 97 configure.fcflags-append -I${prefix}/include/openmpi -L${prefix}/lib -lmpi_f90 -lmpi_f77 -lmpi 85 98 } 99 if { [variant_isset mpich2] } { 100 configure.fcflags-append -I${prefix}/include -L${prefix}/lib 101 configure.fc mpif90 102 configure.cc mpicc 103 configure.cxx mpicxx 104 } 86 105 configure.args-delete --disable-fortran 87 106 configure.args-append --enable-fortran 88 107 configure.post_args LDFLAGS="-L${prefix}/lib" … … 90 109 91 110 variant gcc45 description {Enable Fortran bindings (gfortran 4.5)} conflicts threadsafe universal gcc44 gcc46 { 92 111 depends_lib-append port:gcc45 112 configure.compiler macports-gcc-4.5 93 113 configure.fc ${prefix}/bin/gfortran-mp-4.5 94 114 if { [variant_isset openmpi] } { 95 115 configure.fcflags-append -I${prefix}/include/openmpi -L${prefix}/lib -lmpi_f90 -lmpi_f77 -lmpi 96 116 } 117 if { [variant_isset mpich2] } { 118 configure.fcflags-append -I${prefix}/include -L${prefix}/lib 119 configure.fc mpif90 120 configure.cc mpicc 121 configure.cxx mpicxx 122 } 97 123 configure.args-delete --disable-fortran 98 124 configure.args-append --enable-fortran 99 125 configure.post_args LDFLAGS="-L${prefix}/lib" … … 101 127 102 128 variant gcc46 description {Enable Fortran bindings (gfortran 4.6)} conflicts threadsafe universal gcc44 gcc45 { 103 129 depends_lib-append port:gcc46 130 configure.compiler macports-gcc-4.6 104 131 configure.fc ${prefix}/bin/gfortran-mp-4.6 105 132 if { [variant_isset openmpi] } { 106 133 configure.fcflags-append -I${prefix}/include/openmpi -L${prefix}/lib -lmpi_f90 -lmpi_f77 -lmpi 107 134 } 135 if { [variant_isset mpich2] } { 136 configure.fcflags-append -I${prefix}/include -L${prefix}/lib 137 configure.fc mpif90 138 configure.cc mpicc 139 configure.cxx mpicxx 140 } 108 141 configure.args-delete --disable-fortran 109 142 configure.args-append --enable-fortran 110 143 configure.post_args LDFLAGS="-L${prefix}/lib"