Subject: Re: Berkeley Databases
To: None <tech-pkg@NetBSD.org>
From: Stoned Elipot <seb@starfleet.univ-paris7.fr>
List: tech-pkg
Date: 08/13/2003 10:39:08
On Wed, Aug 13, 2003 at 09:30:46AM +0200, Juan RP wrote:
> On Wed, 13 Aug 2003 16:39:21 +0930 (CST)
> wulf@ping.net.au wrote:
> 
> > G'day,
> > 
> > I've come across several packages that require and check for Berkely DB
> > libraries see below:
> > 
> > checking for main in -ldb-4.0... no
> > checking for main in -ldb-3.3... no
> > checking for main in -ldb-3.2... no
> > checking for main in -ldb-3.1... no
> > 
> > The Berkeley DB libraries in pkgsrc/databases/db{3,4} are not recognized
> > by the applications configure script as libdb4 <> libdb-4.0
> 
> The problem comes with the different versions of Berkeley DB that we 
> have on pkgsrc. The only way I can see is modifying the configure script
> and change the test of those headers, if you want db4, i.e:

Mmmmm buildlink2.

BUILDLINK_TRANSFORM+=	l:db-4.0:db4

and ...

BUILDLINK_TRANSFORM.db4+=	-e "s|include/db4/db.h|db.h|g"