summaryrefslogtreecommitdiff
path: root/mail/mutt-devel
diff options
context:
space:
mode:
authortonio <tonio>2012-08-28 20:15:41 +0000
committertonio <tonio>2012-08-28 20:15:41 +0000
commit410ae3a740b97e57b169760d7cfd52f5e876d72f (patch)
tree335cc91c5bf3f5e6265ca94640647e04efeac93d /mail/mutt-devel
parentad905b88f502a7a8f87dcc2e13b87c4af2659de9 (diff)
downloadpkgsrc-410ae3a740b97e57b169760d7cfd52f5e876d72f.tar.gz
Add an option to use tokyocabinet as backend for mutt header cache
Diffstat (limited to 'mail/mutt-devel')
-rw-r--r--mail/mutt-devel/options.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/mail/mutt-devel/options.mk b/mail/mutt-devel/options.mk
index 9ebd7a1672b..bb94c5a9e78 100644
--- a/mail/mutt-devel/options.mk
+++ b/mail/mutt-devel/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.42 2010/12/20 14:03:39 tonio Exp $
+# $NetBSD: options.mk,v 1.43 2012/08/28 20:15:41 tonio Exp $
# Global and legacy options
@@ -6,7 +6,7 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.mutt
PKG_OPTIONS_REQUIRED_GROUPS= display
PKG_OPTIONS_GROUP.display= slang ncurses ncursesw curses
PKG_SUPPORTED_OPTIONS= debug gpgme idn ssl smime sasl
-PKG_SUPPORTED_OPTIONS+= mutt-hcache mutt-smtp
+PKG_SUPPORTED_OPTIONS+= mutt-hcache tokyocabinet mutt-smtp
# Comment the following line out on updates.
PKG_SUPPORTED_OPTIONS+= mutt-compressed-mbox
PKG_SUPPORTED_OPTIONS+= mutt-sidebar
@@ -87,6 +87,13 @@ CONFIGURE_ARGS+= --disable-smime
### Header cache
###
.if !empty(PKG_OPTIONS:Mmutt-hcache)
+. if !empty(PKG_OPTIONS:Mtokyocabinet)
+. include "../../databases/tokyocabinet/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-hcache
+CONFIGURE_ARGS+= --enable-tokyocabinet
+CONFIGURE_ARGS+= --without-gdbm
+CONFIGURE_ARGS+= --without-bdb
+. else
BDB_ACCEPTED= db4 db5
BUILDLINK_TRANSFORM+= l:db:${BDB_TYPE}
. include "../../mk/bdb.buildlink3.mk"
@@ -97,6 +104,7 @@ CONFIGURE_ARGS+= --without-gdbm
CONFIGURE_ENV+= BDB_INCLUDE_DIR=${BDBBASE}/include
CONFIGURE_ENV+= BDB_LIB_DIR=${BDBBASE}/lib
CONFIGURE_ENV+= BDB_LIB=${BDB_LIBS:S/^-l//:M*:Q}
+. endif
.else
CONFIGURE_ARGS+= --disable-hcache
.endif