/usr/local support

Dan Nicholson dbn.lists at gmail.com
Sun Apr 6 15:00:25 PDT 2008


On Sun, Apr 6, 2008 at 11:57 AM, Enrico Weigelt <weigelt at metux.de> 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 ?

Just directories, version and auxiliary variables.

$ cat /usr/share/pkgconfig/iso-codes.pc
prefix=/usr
domains=iso_15924 iso_3166 iso_4217 iso_639 iso_3166_2 iso_639_3

Name: iso-codes
Description: ISO country, language, script and currency codes and translations
Version: 1.8

It's useful when another package is dependent on the data. For
iso-codes, this includes epiphany, gedit and totem. They can then
easily query for the data (and where it's installed) at build time.

--
Dan


More information about the pkg-config mailing list