diff options
author | wiz <wiz@pkgsrc.org> | 2005-11-22 18:15:56 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-11-22 18:15:56 +0000 |
commit | d7b021547cb893d88099b2044da8eed84caf9715 (patch) | |
tree | 4d591ef727bdabaaa47a96d83a57d333bfe499de /mail | |
parent | 32ddb35f14094b3bd1bf4ff240a71fdfdb632163 (diff) | |
download | pkgsrc-d7b021547cb893d88099b2044da8eed84caf9715.tar.gz |
Add an sqlite option. From Geert Hendrickx via tech-pkg.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/bogofilter/Makefile | 5 | ||||
-rw-r--r-- | mail/bogofilter/options.mk | 19 |
2 files changed, 21 insertions, 3 deletions
diff --git a/mail/bogofilter/Makefile b/mail/bogofilter/Makefile index ca7038661bd..c227ea53007 100644 --- a/mail/bogofilter/Makefile +++ b/mail/bogofilter/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.30 2005/11/21 23:47:02 wiz Exp $ +# $NetBSD: Makefile,v 1.31 2005/11/22 18:15:56 wiz Exp $ DISTNAME= bogofilter-0.96.6 CATEGORIES= mail @@ -22,8 +22,7 @@ CONF_FILES= ${EGDIR}/bogofilter.cf ${PKG_SYSCONFDIR}/bogofilter.cf USE_TOOLS+= perl:run REPLACE_PERL= src/bogoupgrade -BUILDLINK_TRANSFORM+= l:db:db4 +.include "options.mk" -.include "../../databases/db4/buildlink3.mk" .include "../../math/gsl/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/mail/bogofilter/options.mk b/mail/bogofilter/options.mk new file mode 100644 index 00000000000..d8fe4445055 --- /dev/null +++ b/mail/bogofilter/options.mk @@ -0,0 +1,19 @@ +# $NetBSD: options.mk,v 1.1 2005/11/22 18:15:56 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.bogofilter +PKG_OPTIONS_REQUIRED_GROUPS= database +PKG_OPTIONS_GROUP.database= db4 sqlite +PKG_SUGGESTED_OPTIONS= db4 + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mdb4) +CONFIGURE_ARGS+= --with-database=db +.include "../../databases/db4/buildlink3.mk" +BUILDLINK_TRANSFORM+= l:db:db4 +.endif + +.if !empty(PKG_OPTIONS:Msqlite) +CONFIGURE_ARGS+= --with-database=sqlite3 +.include "../../databases/sqlite3/buildlink3.mk" +.endif |