Ignore:
Timestamp:
Feb 4, 2012, 5:16:39 PM (8 years ago)
Author:
mmoll@…
Message:

math/slepc: check more fortran compilers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/slepc/Portfile

    r87648 r89625  
    4747    pre-fetch {
    4848        if {![file exists ${prefix}/lib/libparpack.a]} {
    49             return -code error "Please install the mpi variant of arpack first."
     49            return -code error "Please install the openmpi variant of arpack first."
    5050        }
    5151    }
    5252    # This is a rather fragile way to figure out where the fortran library can be
    5353    # found that is needed to link against libparpack.a:
    54     if {[file exists ${prefix}/lib/gcc44]} {
    55         set fortrandir ${prefix}/lib/gcc44
     54    if {[file exists ${prefix}/lib/gcc46]} {
     55        set fortrandir ${prefix}/lib/gcc46
    5656    } else {
    57         if {[file exists ${prefix}/lib/gcc43]} {
    58             set fortrandir ${prefix}/lib/gcc43
     57        if {[file exists ${prefix}/lib/gcc45]} {
     58            set fortrandir ${prefix}/lib/gcc45
    5959        } else {
    60             if {[file exists ${prefix}/lib/gcc42]} {
    61                 set fortrandir ${prefix}/lib/gcc42
     60            if {[file exists ${prefix}/lib/gcc44]} {
     61                set fortrandir ${prefix}/lib/gcc44
    6262            } else {
    63                 if {[file exists ${prefix}/lib/g95]} {
    64                     set fortrandir ${prefix}/lib/gcc95
     63                if {[file exists ${prefix}/lib/gcc43]} {
     64                    set fortrandir ${prefix}/lib/gcc43
    6565                } else {
    66                     return -code error "Please install a fortran compiler by installing one of the following ports: gcc42, gcc43, gcc44, or g95."
     66                    if {[file exists ${prefix}/lib/gcc42]} {
     67                        set fortrandir ${prefix}/lib/gcc42
     68                    } else {
     69                        if {[file exists ${prefix}/lib/g95]} {
     70                            set fortrandir ${prefix}/lib/gcc95
     71                        } else {
     72                            return -code error "Please install a fortran compiler by installing one of the following ports: gcc42, gcc43, gcc44, gcc45, gcc46, or g95."
     73                        }
     74                    }
    6775                }
    6876            }
Note: See TracChangeset for help on using the changeset viewer.