/usr/local support

Daniel Macks dmacks at netspace.org
Sun Apr 6 13:58:08 PDT 2008

On Sun, Apr 06, 2008 at 08:57:37PM +0200, Enrico Weigelt wrote:
> * Dan Nicholson <dbn.lists at gmail.com> schrieb:
> > >  Look at your filesystem before sending flames...there are plenty of pc
> > >  files nowadays which _are_ arch-independent and don't directly belong to
> > >  libs. /usr/share/pkgconfig is for those.
> > 
> > Yep. For example, iso-codes, which is just a bunch of data in
> > ${datadir}. Doesn't get much more architecture-independent than that.
> Aha. Never seen a .pc file for that.
> What exactly should such an pc file contain ?

My share/pkgconfig dir has:

  gnome-icon-theme.pc     gtk-doc.pc              iso-codes.pc
  gnome-mime-data-2.0.pc  icon-naming-utils.pc    shared-mime-info.pc

The important standard fields in them seem to be prefix= and Version:,
so that others can learn where these things are installed (programs
need to know where to find those data files) and what version is
present (for the usual dependency reasons). Some also have specific
info relevant for each: iso-codes has a domains= variable to declare
what it supports, icon-naming-utils has a program_path= to indicate
where a certain utility program is installed.


Daniel Macks
dmacks at netspace.org

More information about the pkg-config mailing list