Getting other portfile's header / library paths inside another?

Ryan Schmidt ryandesign at macports.org
Fri Jul 2 04:35:20 PDT 2010


On Jul 1, 2010, at 17:34, Michael Dickens wrote:

> Is there a way -inside a portfile- to determine the header or library
> search path for another port (e.g., as provided by "pkg-config
> --cflags-only-I dbus-1")?  For example, use 'pkg-config' to return
> information & save that into a variable locally for manipulation?  Right
> now I'm hard-coding heading include and library search paths for
> dependency ports (into qt4-mac), and it seems to me that a better
> solution would be dynamic determination.  Thanks in advance! - MLD

Certainly; there are several ports that do this. Grep the portfiles for "exec.*pkg-config" and you should be able to find them easily.





More information about the macports-dev mailing list