You can use `configure.pkg_config_path-prepend` or `cmake.module_path-append` or alike, tailoring to what exactly you need. There are ports which use libfmt of specific versions, check how it is done there.
On Sat, Jun 28, 2025 at 8:23 AM Ryan Carsten Schmidt < [email protected]> wrote: > 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. >
