The following is done in a Terminal window. One should first install some libraries:
sudo port install gcc49
sudo port install automake
sudo port install autoconf
sudo port install gtk3
sudo port install gnome-themes-standard
sudo port install librsvg
sudo port install cfitsio
sudo port install fftw-3
sudo port install gsl
sudo port install libconfig-hr
sudo port install gnome-font-viewer