Subject: Re: pkgconfig and buildlink
To: Amitai Schlair <>
From: None <>
List: tech-pkg
Date: 03/19/2002 22:02:45
On Tue, 19 Mar 2002, Amitai Schlair wrote:

> "" <> wrote:
> > On Tue, 19 Mar 2002, Johnny C. Lam wrote:
> > 
> >> On Sun, Mar 17, 2002 at 10:43:16AM -0500, wrote:
> >>> 
> >>> are there any examples of how to create files for packages
> >>> which use devel/pkgconfig (sort of a universal gtk-config type program).
> >> 
> >> Can you give some examples of packages in our tree that use pkg-config?
> >> I'd like to study how it's invoked so I can help devise a
> >> solution.
> > 
> > i'm not sure of any, but 4 packages I'm working on importing soon do....
> > graphics/imlib and graphics/gphoto2 both install .pc files, but it looks
> > like they don't do anything with them.
> I might be reading you wrong, but just to err on the side of clarity:
> packages that install .pc files do so for the benefit of other packages that
> expect to use pkg-config to find them. For example, gphoto2's .pc file would
> come in handy if graphics/sane-backends were to use pkg-config to look for
> gphoto2.
> gphoto2 will use pkg-config to find graphics/libexif if you have pkg-config
> installed and comment out the line "CONFIGURE_ARGS+= --without-pkgconfig" in
> gphoto2's Makefile.

right.  When I said they don't do anything I meant that they don't pull in
pkg-config as a depends so that its there for other pkgs to use with the
.pc files installed by imlib and gphoto2.