How to use PROJ wrapper port

Ryan Carsten Schmidt ryandesign at macports.org
Sat Jun 28 00:23:06 UTC 2025


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. 


More information about the macports-dev mailing list