`depends_on :fortran` should take care of setting the `F77` environment variable. The `depends_on :mpi` should also take care of defining `MPICC`, etc.