The basis of these notes have been kindly created by Richard Welty.
This installation assumes un*x/linux tools installed using Mac Ports
You will need a basic install of un*x utilities.
You can use the whining of ./configure to figure out what you need to install.
Here is the starting list of a couple of dependencies below, but the list is far from complete (as I already had a pretty extensive collection of utilities installed).
gpsd from macports satisfies libgps
port install gdk-pixbuf2
port install gtk2
port install gpsd
Although GPSBabel is not required, Viking's functionality is greatly enhanced if it is available.
port install gpsbabel
You need X11 from XCode (get XCode from Mac App Store).
For libraries placed in /opt/local/lib by macports, set LDFLAGS before running ./configure. If it complains about libexif and libexif is in /opt/local/lib, this will fix it:
export LDFLAGS=-L/opt/local/lib