There's a PortGroup for handling the Fortran compiler selection from the command line. The difficult job is getting the selection from the CL into the Python setup script. As Petr and I have written, some projects do this more robustly than others. If you have a Portfile you can share with us, we might be able to help. Good luck! - MLD