Ticket #22480: Portfile.diff

File Portfile.diff, 1.8 KB (added by numaryu, 15 years ago)
  • Portfile

    old new  
    4343    configure.args-append       --enable-threadsafe --disable-cxx
    4444}
    4545
     46variant fortran conflicts threadsafe description {Include the Fortran interface} {
     47    configure.args-delete   --disable-fortran
     48    configure.args-append   --enable-fortran
     49    pre-fetch {
     50        if { ![variant_isset gcc43] && ![variant_isset gcc42] && ![variant_isset g95] } {
     51            error "You must specify a compiler variant in order to build the Fortran interface"
     52        }
     53    }
     54}
     55
     56variant gcc42 requires fortran conflicts g95 gcc43 description {Compile using GCC 4.2} {
     57    depends_lib-append          port:gcc42
     58    configure.compiler          macports-gcc-4.2
     59}
     60
     61variant gcc43 requires fortran conflicts g95 gcc42 description {Compile using GCC 4.3} {
     62    depends_lib-append          port:gcc43
     63    configure.compiler          macports-gcc-4.3
     64}
     65
     66variant g95 requires fortran conflicts gcc42 gcc43 description {Use g95 Fortran compiler (unsupported)} {
     67    depends_lib-append          port:g95
     68    configure.fc                ${prefix}/bin/g95
     69}
     70
     71variant mpich2 description {Parallel HDF5 with mpich2} {
     72    depends_lib-append          port:mpich2
     73    configure.args-delete       --enable-cxx
     74    configure.cc                ${prefix}/bin/mpicc
     75    if { [variant_isset fortran] } {
     76       configure.fc             ${prefix}/bin/mpif90
     77    }
     78}
     79
     80#variant openmpi description {Parallel HDF5 with openmpi} {
     81#    depends_lib-append         port:openmpi
     82#    configure.args-delete      --enable-cxx
     83#    configure.cc               ${prefix}/bin/openmpicc
     84#    if { [variant_isset fortran] } {
     85#       configure.fc            ${prefix}/bin/openmpif90
     86#    }
     87#}
     88
    4689livecheck.type      regex
    4790livecheck.url       http://www.hdfgroup.org/HDF5/release/obtain5.html
    4891livecheck.regex     5-(\[0-9.\]+)