pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/mutt mutt: Add lmdb header cache backend support.
details: https://anonhg.NetBSD.org/pkgsrc/rev/ac60574aaa91
branches: trunk
changeset: 382126:ac60574aaa91
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Thu Jul 21 10:12:36 2022 +0000
description:
mutt: Add lmdb header cache backend support.
Various benchmarks show this to be the best available option.
diffstat:
mail/mutt/options.mk | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r e8990e4287e5 -r ac60574aaa91 mail/mutt/options.mk
--- a/mail/mutt/options.mk Thu Jul 21 09:38:49 2022 +0000
+++ b/mail/mutt/options.mk Thu Jul 21 10:12:36 2022 +0000
@@ -1,15 +1,15 @@
-# $NetBSD: options.mk,v 1.35 2020/06/22 06:24:15 wiz Exp $
+# $NetBSD: options.mk,v 1.36 2022/07/21 10:12:36 jperkin Exp $
# Global and legacy options
PKG_OPTIONS_VAR= PKG_OPTIONS.mutt
PKG_OPTIONS_REQUIRED_GROUPS= display
-PKG_OPTIONS_OPTIONAL_GROUPS= ssl
+PKG_OPTIONS_OPTIONAL_GROUPS= db ssl
+PKG_OPTIONS_GROUP.db= tokyocabinet lmdb
PKG_OPTIONS_GROUP.display= curses wide-curses slang
PKG_OPTIONS_GROUP.ssl= gnutls openssl
PKG_SUPPORTED_OPTIONS= debug gpgme idn smime sasl
-# TODO: add kyoto cabinet and lmdb backend options for header cache
-PKG_SUPPORTED_OPTIONS+= mutt-hcache mutt-compressed-mbox tokyocabinet mutt-smtp
+PKG_SUPPORTED_OPTIONS+= mutt-hcache mutt-compressed-mbox mutt-smtp
PKG_SUPPORTED_OPTIONS+= gssapi
PKG_SUGGESTED_OPTIONS= curses gpgme mutt-hcache mutt-smtp smime openssl
PKG_SUGGESTED_OPTIONS+= gssapi mutt-compressed-mbox sasl
@@ -102,7 +102,13 @@
### Header cache
###
.if !empty(PKG_OPTIONS:Mmutt-hcache)
-. if !empty(PKG_OPTIONS:Mtokyocabinet)
+. if !empty(PKG_OPTIONS:Mlmdb)
+. include "../../databases/lmdb/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-hcache
+CONFIGURE_ARGS+= --enable-lmdb
+CONFIGURE_ARGS+= --without-gdbm
+CONFIGURE_ARGS+= --without-bdb
+. elif !empty(PKG_OPTIONS:Mtokyocabinet)
. include "../../databases/tokyocabinet/buildlink3.mk"
CONFIGURE_ARGS+= --enable-hcache
CONFIGURE_ARGS+= --enable-tokyocabinet
Home |
Main Index |
Thread Index |
Old Index