Ticket #39365: Portfile-arpack.4.diff

File Portfile-arpack.4.diff, 1.2 KB (added by dstrubbe (David Strubbe), 11 years ago)
  • Portfile

    old new  
    3737        ui_error "${name} ${version} requires Mac OS X 10.5 or greater"
    3838        return -code error "incompatible Mac OS X version"
    3939   }
     40}
    4041
     42pre-configure {
    4143   if {[variant_isset openmpi]} {
    4244      if { ![active_variants openmpi gcc43] && ![active_variants openmpi gcc44] && \
    4345           ![active_variants openmpi gcc45] && ![active_variants openmpi gcc46] && \
     
    4648        ui_error "${name} with +openmpi requires that openmpi was built with a Fortran variant"
    4749        return -code error "openmpi needs Fortran variant"
    4850      }
     51
     52      # see g95 variant below for explanation
     53      if { [active_variants openmpi g95] } {
     54        configure.args-append --disable-shared
     55      }
    4956   }
    5057
    5158   if {[variant_isset mpich]} {
     
    7582    configure.args-delete  --disable-mpi
    7683    configure.args-append  --enable-mpi
    7784    configure.env-append   F77=${prefix}/bin/openmpif77
    78     # see g95 variant below for explanation
    79     if { [active_variants openmpi g95] } {
    80       configure.args-append --disable-shared
    81     }
    8285}
    8386
    8487variant mpich description {build PARPACK, with MPICH} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 g95 openmpi {