root@vpn-cl-192-22~# port -d select --set gcc gcc40
DEBUG: action_select [gcc gcc40] [ports_select_set yes]...
DEBUG: The 'set' command was specified.
DEBUG: mportselect [set] [gcc] [gcc40]
DEBUG: ln -sf /usr/bin/gcc-4.0 /opt/local/bin/gcc
DEBUG: ln -sf /usr/bin/cpp-4.0 /opt/local/bin/cpp
DEBUG: ln -sf /usr/bin/c++-4.0 /opt/local/bin/c++
DEBUG: ln -sf /usr/bin/g++-4.0 /opt/local/bin/g++
DEBUG: rm -f /opt/local/bin/gcj
DEBUG: ln -sf /usr/bin/gcov-4.0 /opt/local/bin/gcov
DEBUG: rm -f /opt/local/bin/gfortran
Selecting 'gcc40' for 'gcc' succeeded. 'gcc40' is now active.