<div dir="ltr">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.</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sat, Jun 28, 2025 at 8:23 AM Ryan Carsten Schmidt <<a href="mailto:ryandesign@macports.org">ryandesign@macports.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On Jun 27, 2025, at 17:42, Dave Allured - NOAA Affiliate wrote:<br>
> <br>
> <br>
> 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.<br>
> <br>
> 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?<br>
<br>
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. <br>
</blockquote></div>