Ticket #35457: Portfile.diff

File Portfile.diff, 3.9 KB (added by numaryu, 12 years ago)
  • Portfile

    old new  
    6262}
    6363
    6464
    65 variant threadsafe description {Enable threadsafety (experimental and un-supported, disables cxx support)} conflicts openmpi {
     65variant threadsafe description {Enable threadsafety (experimental and un-supported, disables cxx support)} conflicts openmpi mpich2 {
    6666    configure.args-delete       --disable-threadsafe --enable-cxx
    6767    configure.args-append       --enable-threadsafe --disable-cxx
    6868}
    6969
    7070# openmpi conflicts with universal because there is no universal variant for
    7171# the openmpi port at the moment
    72 variant openmpi description {Enable Parallel HDF5} conflicts threadsafe universal {
     72variant openmpi description {Enable Parallel HDF5 with openmpi} conflicts threadsafe universal mpich2 {
    7373    depends_lib-append          port:openmpi
    7474    configure.cc                ${prefix}/bin/openmpicc
    7575    configure.args-delete       --disable-parallel --enable-cxx
     
    7777}
    7878
    7979
     80variant 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
    8092variant gcc44 description {Enable Fortran bindings (gfortran 4.4)} conflicts threadsafe universal gcc45 gcc46 {
    8193    depends_lib-append          port:gcc44
     94    configure.compiler      macports-gcc-4.4
    8295    configure.fc                ${prefix}/bin/gfortran-mp-4.4
    8396    if { [variant_isset openmpi] } {
    8497        configure.fcflags-append    -I${prefix}/include/openmpi -L${prefix}/lib -lmpi_f90 -lmpi_f77 -lmpi
    8598    }
     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    }
    86105    configure.args-delete       --disable-fortran
    87106    configure.args-append       --enable-fortran
    88107    configure.post_args LDFLAGS="-L${prefix}/lib"
     
    90109
    91110variant gcc45 description {Enable Fortran bindings (gfortran 4.5)} conflicts threadsafe universal gcc44 gcc46 {
    92111    depends_lib-append          port:gcc45
     112    configure.compiler      macports-gcc-4.5
    93113    configure.fc                ${prefix}/bin/gfortran-mp-4.5
    94114    if { [variant_isset openmpi] } {
    95115        configure.fcflags-append    -I${prefix}/include/openmpi -L${prefix}/lib -lmpi_f90 -lmpi_f77 -lmpi
    96116    }
     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    }
    97123    configure.args-delete       --disable-fortran
    98124    configure.args-append       --enable-fortran
    99125    configure.post_args LDFLAGS="-L${prefix}/lib"
     
    101127
    102128variant gcc46 description {Enable Fortran bindings (gfortran 4.6)} conflicts threadsafe universal gcc44 gcc45 {
    103129    depends_lib-append          port:gcc46
     130    configure.compiler      macports-gcc-4.6
    104131    configure.fc                ${prefix}/bin/gfortran-mp-4.6
    105132    if { [variant_isset openmpi] } {
    106133        configure.fcflags-append    -I${prefix}/include/openmpi -L${prefix}/lib -lmpi_f90 -lmpi_f77 -lmpi
    107134    }
     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    }
    108141    configure.args-delete       --disable-fortran
    109142    configure.args-append       --enable-fortran
    110143    configure.post_args LDFLAGS="-L${prefix}/lib"