Ticket #22104: Portfile.diff

File Portfile.diff, 2.1 KB (added by howarth@…, 15 years ago)

add gcc44 variant for Snow Leopard to openmpi package

  • Portfile

    old new  
    44
    55name                    openmpi
    66version                 1.3.3
     7revision                1
    78categories              science parallel net
    89platforms               darwin
    910maintainers             mww
     
    6364        configure.args-append --enable-progress-threads
    6465}
    6566
    66 variant gcc42 description {build mpif77 and mpif90 using gcc42} conflicts gcc43 g95 {
     67variant gcc42 description {build mpif77 and mpif90 using gcc42} conflicts gcc44 gcc43 g95 {
    6768        configure.args-delete --disable-f77 --disable-f90
    6869        configure.args-append --enable-f77 --enable-f90
    6970        configure.f77         ${prefix}/bin/gfortran-mp-4.2
     
    7273        lappend wrappers mpif77 mpif90
    7374}
    7475
    75 variant gcc43 description {build mpif77 and mpif90 using gcc43} conflicts gcc42 g95 {
     76variant gcc43 description {build mpif77 and mpif90 using gcc43} conflicts gcc44 gcc42 g95 {
    7677        configure.args-delete --disable-f77 --disable-f90
    7778        configure.args-append --enable-f77 --enable-f90
    7879        configure.f77         ${prefix}/bin/gfortran-mp-4.3
     
    8182        lappend wrappers mpif77 mpif90
    8283}
    8384
    84 variant g95 description {build mpif77 and mpif90 using g95} conflicts gcc42 gcc43 {
     85variant gcc44 description {build mpif77 and mpif90 using gcc44} conflicts gcc43 gcc42 g95 {
     86        configure.args-delete --disable-f77 --disable-f90
     87        configure.args-append --enable-f77 --enable-f90
     88        configure.f77         ${prefix}/bin/gfortran-mp-4.4
     89        configure.fc          ${prefix}/bin/gfortran-mp-4.4
     90        depends_lib-append    port:gcc44
     91        lappend wrappers mpif77 mpif90
     92}
     93
     94variant g95 description {build mpif77 and mpif90 using g95} conflicts gcc42 gcc43 gcc44 {
    8595        configure.args-delete --disable-f77 --disable-f90
    8696        configure.args-append --enable-f77 --enable-f90
    8797        configure.f77         ${prefix}/bin/g95
     
    91101}
    92102
    93103# dependents like netcdf need some form of fortran
    94 if {![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset g95]} {
    95     default_variants +gcc43
     104if {![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset g95]} {
     105    default_variants +gcc44
    96106}
    97107
    98108livecheck.type  regex