RFC: FreeBSD DB Port Reform

Sergei Kolobov sergei at FreeBSD.org
Thu Nov 6 07:32:04 PST 2003


On 2003-11-06 at 15:19 +0100, Matthias Andree wrote:
> We'd need some mechanism to allow applications (remember, they are
> provided by third parties) continue to use -ldb, by just adding
> LDFLAGS=-L/usr/local/BerkeleyDB-N.M/lib. Using LIBS=-ldb-4.1 doesn't
> work universally.

How about this instead,:

CPPFLAGS+=	-I${LOCALBASE}/include/db${BDB_VER}
LDFLAGS+=	-L${LOCALBASE}/lib/db{BDB_VER}
CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

That way, third-party apps will link against -ldb, 
and no patching will be required.

As a bonus, db{3,4,41,...} ports will comply with hier(7). ;)

Sergei
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20031106/92de1811/attachment.bin


More information about the freebsd-ports mailing list