Install dependencies on FreeBSD - GenericMappingTools/gmt GitHub Wiki

For FreeBSD, there are prepackaged development binaries available. Install the gmt dependencies with:

# install necessary dependencies
sudo pkg install shells/bash devel/cmake ftp/curl science/netcdf

# install optional dependencies
sudo pkg install ninja graphics/gdal devel/pcre math/fftw3-float math/lapack math/openblas print/ghostscript9-agpl-base

# to enable movie-making
sudo pkg install graphics/GraphicsMagick multimedia/ffmpeg

# to enable document viewing via gmt docs
sudo pkg install xdg-utils

# to enable testing
sudo pkg install graphics/GraphicsMagick

# to build the documentation
sudo pkg install py37-sphinx