diff options
Diffstat (limited to 'mail/bogofilter')
-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 |