[MacPorts] #16993: RFE: have pkgconfig look for x11 libraries
MacPorts
noreply at macports.org
Fri Oct 24 16:24:42 PDT 2008
#16993: RFE: have pkgconfig look for x11 libraries
-----------------------------------+----------------------------------------
Reporter: mcalhoun at macports.org | Owner: ryandesign at macports.org
Type: enhancement | Status: new
Priority: Normal | Milestone: Port Enhancements
Component: ports | Version: 1.6.0
Keywords: | Port: pkgconfig
-----------------------------------+----------------------------------------
May I humbly suggest that pkg-config search in both[[BR]]
${prefix}/lib/pkgconfig and ${x11prefix}/lib/pkgconfig[[BR]]
for .pc files.
Attached is the proposed change.
While looking at the gtk2 port, I noticed that its configure script[[BR]]
could not find several X11 libraries it was looking for.[[BR]]
I looked into creating MacPorts versions, but I would have ended up
porting[[BR]]
the entire system.
Another example is xrender.[[BR]]
I have been testing a newer version.[[BR]]
The xrender.pc file depends on x11.pc, which resides in
${x11prefix}/lib/pkgconfig.[[BR]]
Were I to make the upgrade, all ports which use xrender would have to
set[[BR]]
the PKG_CONFIG_PATH variable.
All of this is possible, but it seems to me that as a matter of both
convenience [[BR]]
and elegancy, pkgconfig should search for X11 libraries by default.[[BR]]
After all, many ports do in fact use the X11 libraries.
The rare port which genuliy does not want to search for X11 libraries can
set[[BR]]
the PKG_CONFIG_LIBDIR variable.
My proposed change sets the search order so MacPorts libraries are found
first.
--
Ticket URL: <http://trac.macports.org/ticket/16993>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list