Wiki

First split off DCW-GMT and GSHHG into separate architecture independent packages, e.g., gmt-dcw and gmt-gshhg, because they have a different development cycle. Files should go into directories /usr/share/gmt-dcw/ and /usr/share/gmt-gshhg/ or /usr/share/gmt/{dcw,gshhg}/. Then configure GMT 5 as shown in the table below. it is expected that the GMT supplements plugin be distributed with the core programs.

DCW-GMT is an enhancement to the original 1:1,000,000 scale vector basemap of the world available from the Princeton University Digital Map and Geospatial Information Center and from GeoCommunity at http://data.geocomm.com/readme/dcw/dcw.html. This data is for use by GMT, the Generic Mapping Tools.

GSHHG is a high-resolution shoreline data set amalgamated from two databases: Global Self-consistent Hierarchical High-resolution Shorelines (GSHHS) and CIA World Data Bank II (WDBII). GSHHG contains vector descriptions at five different resolutions of land outlines, lakes, rivers, and political boundaries. This data is for use by GMT, the Generic Mapping Tools.

-DCMAKE_BUILD_TYPE=RelWithDebInfo-DCMAKE_C_FLAGS=-fstrict-aliasing-DCMAKE_INSTALL_PREFIX=${prefix}-DDCW_ROOT=${prefix}/share/gmt/dcw-DGSHHG_ROOT=${prefix}/share/gmt/gshhg-DNETCDF_ROOT=${prefix}-DFFTW3_ROOT=${prefix}-DGDAL_ROOT=${prefix}-DPCRE_ROOT=${prefix}-DGMT_INSTALL_MODULE_LINKS=off-DGMT_INSTALL_TRADITIONAL_FOLDERNAMES=off-DLICENSE_RESTRICTED=LGPL or -DLICENSE_RESTRICTED=no to include non-free code

Note that you have to configure and build out-of-source. It is safe to make a parallel build with make -j. Please configure with CMAKE_BUILD_TYPE=RelWithDebInfo (appends -O2 -g to CFLAGS) so that we get reliable backtraces from sighandler.