Ticket #14638: Portfile.diff

File Portfile.diff, 1.7 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 17 years ago)
  • Portfile

    old new  
    5454        }
    5555}
    5656
    57 variant fortran {
     57variant gcc42 description {build mpif77 and mpif90 using gcc42} conflicts gcc43 g95 {
    5858        configure.args-delete --disable-f77 --disable-f90
    5959        configure.args-append --enable-f77 --enable-f90
    60         configure.f77   ${prefix}/bin/gfortran-mp-4.2
    61         configure.fc    ${prefix}/bin/gfortran-mp-4.2
    62         # We need gfortran. Gcc41 doesn't seem to compile on Intel Mac, so we'll take 
    63         # gcc42. Too bad that the actual gfortran binary in gcc42 is called
    64         # gfortran-mp-4.2, otherwise we could just say bin:gfortran:gcc42.
    65         depends_build port:gcc42
     60        configure.f77         ${prefix}/bin/gfortran-mp-4.2
     61        configure.fc          ${prefix}/bin/gfortran-mp-4.2
     62        depends_lib-append    port:gcc42
    6663        lappend wrappers mpif77 mpif90
    6764}
    6865
    69 variant g95 {
     66variant gcc43 description {build mpif77 and mpif90 using gcc43} conflicts gcc42 g95 {
     67        configure.args-delete --disable-f77 --disable-f90
     68        configure.args-append --enable-f77 --enable-f90
     69        configure.f77         ${prefix}/bin/gfortran-mp-4.3
     70        configure.fc          ${prefix}/bin/gfortran-mp-4.3
     71        depends_lib-append    port:gcc43
     72        lappend wrappers mpif77 mpif90
     73}
     74
     75variant g95 description {build mpif77 and mpif90 using g95} conflicts gcc43 g95 {
    7076        configure.args-delete --disable-f77 --disable-f90
    7177        configure.args-append --enable-f77 --enable-f90
    72         configure.f77   ${prefix}/bin/g95
    73         configure.fc    ${prefix}/bin/g95
    74         depends_build   port:g95
     78        configure.f77         ${prefix}/bin/g95
     79        configure.fc          ${prefix}/bin/g95
     80        depends_lib-append    port:g95
    7581        lappend wrappers mpif77 mpif90
    7682}
    7783