You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
openspecfun: actually set Fortran compiler name
This commit is contained in:
@@ -25,7 +25,14 @@ compilers.setup require_fortran
|
||||
|
||||
post-configure {
|
||||
# openspecfun will definitely use a real compiler name, not gfortran.
|
||||
set myf [fortran_compiler_name [fortran_variant_name]]
|
||||
set myc [fortran_compiler_name [fortran_variant_name]]
|
||||
if {[string match "gcc1*" $myc]} {
|
||||
set myf gfortran-mp-[string range $myc 3 end]
|
||||
} elseif {${myc} eq "gcc-devel"} {
|
||||
set myf "gfortran-mp-devel"
|
||||
} else {
|
||||
set myf "g95"
|
||||
}
|
||||
|
||||
reinplace "s|gfortran|$myf|" \
|
||||
${worksrcpath}/Make.inc \
|
||||
|
||||
Reference in New Issue
Block a user