The build of port graphics/gmt5 fails on both most recent CURRENT (i.e. FreeBSD 13.0-CURRENT #93 r357109: Sat Jan 25 09:55:58 CET 2020 amd64) and 12-STABLE (also recent build). I took the hint (see below) and recompiled science/hdf5, but without success.
-- ANSI C header files - found
CMake Warning (dev) at src/CMakeLists.txt:234 (find_package):
Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
CMake variable GSHHG_ROOT is set to:
For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at cmake/modules/FindGSHHG.cmake:67 (message):
Cannot determine GSHHG version:
Run Build Command(s):/usr/local/bin/ninja cmTC_3e8e1 && [1/2] Building C
[2/2] Linking C executable cmTC_3e8e1
Warning! ***HDF5 library version mismatched error***
The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked.
Call Stack (most recent call first):
-- Configuring incomplete, errors occurred!
See also "/usr/ports/graphics/gmt5/work/.build/CMakeFiles/CMakeOutput.log".
See also "/usr/ports/graphics/gmt5/work/.build/CMakeFiles/CMakeError.log".
*** Error code 1
make: stopped in /usr/ports/graphics/gmt5
===>>> make build failed for graphics/gmt5
What's your option for hdf5?