Now packaged fine on NetBSD/amd64 6.1RC_2:
Following problem gone now
    => Checking for missing run-time search paths in tqsl-1.14
    ERROR: lib/libtqsllib.so: missing library: libdb5-5.3.so.3
    *** Error code 1
with the two variables and tricky SUBST lines.
  +       -DCMAKE_INSTALL_RPATH=${PREFIX}/lib \
  +       -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes \