Although PREFIX is set to /opt here, and most of gdal is installed under ${STAGEDIR}/opt, one file, the gdal.pc, gets installed into ${STAGEDIR}/usr/local/libdata/pkgconfig/gdal.pc
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=2fdac17cd2719c1774b9b9ebe8b44711e87d4c75 commit 2fdac17cd2719c1774b9b9ebe8b44711e87d4c75 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2021-07-21 17:56:22 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2021-07-21 18:12:12 +0000 graphics/gdal: Respect PREFIX - Install gdal.pc to PREFIX/libdata/pkgconfig/ PR: 257262 Reported by: mi graphics/gdal/files/patch-GNUmakefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Committed. Thanks!