This is based on D56474, it only generates the basic .pc files.
As depends get updated, if we generated the other two files statically, they would soon become outdated and contain invalid information. So the .spdx and .jsonld files need to be generated either by a pkg hook, or a separate tool. (see https://reviews.freebsd.org/D56474#1375885 a more complete explanation)