diff options
author | jlam <jlam> | 2004-11-15 17:54:49 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-11-15 17:54:49 +0000 |
commit | 6732657e9b700bd4b49c74d66bb7fb40f46d3947 (patch) | |
tree | 5579b0ab6b1d842e66a7d3075d37a9f9564a124e /mail/maildrop | |
parent | 6bfb6f0a57769be79c33ec7a1a13d7b34fc16865 (diff) | |
download | pkgsrc-6732657e9b700bd4b49c74d66bb7fb40f46d3947.tar.gz |
Rework the Berkeley DB detection in buildlink3:
* Add a db1.builtin.mk file that detects whether DB-1.85 functionality
exists in the base system, and remove the distinction between
"native" and the other Berkeley DB packages -- we now refer to
db[1234]. This paves the way for any future databases/db1 package.
* USE_DB185 shouldn't need to be set by any packages -- its correct
value is now automatically determined by bdb.buildlink3.mk depending
on whether we explicitly request db1 or not. By default, if you
include bdb.buildlink3.mk, you want DB-1.85 functionality and
USE_DB185 defaults to "yes", but if you explicitly remove db1 from
the list of acceptable DBs, then USE_DB185 defaults to "no".
* Set BDB_LIBS to the library options needed to link against the DB
library when bdb.buildlink3.mk is included.
* We only add the DB library to the linker command automatically if
we want DB-1.85 functionality; otherwise assume that the package
configure process can figure out how to probe for the correct
headers and libraries.
Edit package Makefiles to nuke redundant settings of USE_DB185.
Diffstat (limited to 'mail/maildrop')
-rw-r--r-- | mail/maildrop/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/maildrop/Makefile b/mail/maildrop/Makefile index 25469a97780..cdf0db06ea0 100644 --- a/mail/maildrop/Makefile +++ b/mail/maildrop/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2004/10/03 00:12:53 tv Exp $ +# $NetBSD: Makefile,v 1.21 2004/11/15 17:54:49 jlam Exp $ DISTNAME= maildrop-1.3.9 PKGREVISION= 2 @@ -12,6 +12,7 @@ DEPENDS+= courier-maildir>=0.45.6:../../mail/courier-maildir USE_BUILDLINK3= yes USE_DB185= yes +BDB_ACCEPTED= db2 USE_LANGUAGES= c c++ .include "../../mail/courier-auth/Makefile.common" @@ -29,6 +30,6 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/README.postfix ${DOCDIR} ${INSTALL_DATA} ${WRKSRC}/maildroptips.txt ${DOCDIR} -.include "../../databases/db/buildlink3.mk" .include "../../lang/perl5/buildlink3.mk" +.include "../../mk/bdb.buildlink3.mk" .include "../../mk/bsd.pkg.mk" |