On Jun 27, 2025, at 17:42, Dave Allured - NOAA Affiliate wrote: > > > Devs, I want to add a dependency on port:proj, the PROJ generic wrapper, to a > current port. That port (VTK) uses CMake, and find_package fails because all > of the cmake and pkgconfig files are inside versioned subdirectories such as > /opt/local/lib/proj9. > > Is there a generic way to use the PROJ wrapper port, without hard coding a > version number or adding a search loop, like I see in many other portfiles?
I expect that you should depend on the specific versioned proj port you need (not the proj meta port) and use the right cmake flags to tell vtk to use that.