Subject: Re: pkgconfig and pkgviews
To: Julio M. Merino Vidal <jmmv@menta.net>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 04/27/2004 10:32:48
On Tue, 27 Apr 2004, Julio M. Merino Vidal wrote:
> After a quick look, it seems that it's just missing an include of pkgconfig's
> buildlink3.mk file. It is required to let it find .pc files in the buildlink
> dir. Hmm... "fast" bl3ifications...
Yes, that works. And I now committed that one line for wm/obconf/Makefile.
Nevertheless, pkg-config is still broken with pkgviews if using outside of
pkgsrc:
> > reed@tahoma:/usr/pkgsrc/wm/obconf$ /usr/pkg/bin/pkg-config --print-errors
> > --debug --exists "obrender-3.0 obparser-3.0"
> > Option --debug seen
> > Option --exists seen
> > Error printing disabled by default, value of --print-errors: 1
> > Error printing enabled
> > Scanning directory '/usr/pkg/packages/pkgconfig-0.15.0/lib/pkgconfig'
This is wrong.
So I added to devel/pkgconfig/Makefile.
+# define location for *.pc files -- needed when using pkgviews
+CONFIGURE_ARGS+= --libdir=${LOCALBASE}/lib
And now it works when running manually.
The post-install target of making the ${PREFIX}/lib/pkgconfig needs to be
removed (and removed from PLIST too). And use MAKE_DIRS for it instead.
And PKGREVISION should be bumped.
May I do this? (This package does not have a maintainer.)
Jeremy C. Reed
http://bsd.reedmedia.net/