summaryrefslogtreecommitdiff
path: root/mail/bogofilter
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-11-22 18:15:56 +0000
committerwiz <wiz@pkgsrc.org>2005-11-22 18:15:56 +0000
commita897f04348d8080a85b22cbe2f4001ad737a5194 (patch)
tree4d591ef727bdabaaa47a96d83a57d333bfe499de /mail/bogofilter
parentbcaad2c1e26a3fa6d9a4b7f5b0b6405d688b1605 (diff)
downloadpkgsrc-a897f04348d8080a85b22cbe2f4001ad737a5194.tar.gz
Add an sqlite option. From Geert Hendrickx via tech-pkg.
Diffstat (limited to 'mail/bogofilter')
-rw-r--r--mail/bogofilter/Makefile5
-rw-r--r--mail/bogofilter/options.mk19
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