19e5628cfc
2020-06-19 Richard Russon <rich@flatcap.org> * Security - Abort GnuTLS certificate check if a cert in the chain is rejected - TLS: clear data after a starttls acknowledgement - Prevent possible IMAP MITM via PREAUTH response * Features - add config operations +=/-= for number,long - Address book has a comment field - Query menu has a comment field * Contrib - sample.neomuttrc-starter: Do not echo promted password * Bug Fixes - make "news://" and "nntp://" schemes interchangeable - Fix CRLF to LF conversion in base64 decoding - Double comma in query - compose: fix redraw after history - Crash inside empty query menu - mmdf: fix creating new mailbox - mh: fix creating new mailbox - mbox: error out when an mbox/mmdf is a pipe - Fix list-reply by correct parsing of List-Post headers - Decode references according to RFC2047 - fix tagged message count - hcache: fix keylen not being considered when building the full key - sidebar: fix path comparison - Don't mess with the original pattern when running IMAP searches - Handle IMAP "NO" resps by issuing a msg instead of failing badly - imap: use the connection delimiter if provided - Memory leaks * Changed Config - `$alias_format` default changed to include `%c` comment - `$query_format` default changed to include `%e` extra info * Translations - 100% Lithuanian - 84% French - Log the translation in use * Docs - Add missing commands unbind, unmacro to man pages * Build - Check size of long using `LONG_MAX` instead of `__WORDSIZE` - Allow ./configure to not record cflags - fix out-of-tree build - Avoid locating gdbm symbols in qdbm library * Code - Refactor unsafe TAILQ returns - add window notifications - flip negative ifs - Update to latest acutest.h - test: add store tests - test: add compression tests - graphviz: email - make more opcode info available - refactor: `main_change_folder()` - refactor: `mutt_mailbox_next()` - refactor: `generate_body()` - compress: add `{min,max}_level` to ComprOps - emphasise empty loops: "// do nothing" - prex: convert `is_from()` to use regex - Refactor IMAP's search routines 2020-05-01 Richard Russon <rich@flatcap.org> * Bug Fixes - Make sure buffers are initialized on error - fix(sidebar): use abbreviated path if possible * Translations - 100% Lithuanian * Docs - make header cache config more explicit
164 lines
3.8 KiB
Makefile
164 lines
3.8 KiB
Makefile
# $NetBSD: options.mk,v 1.16 2020/06/22 06:08:35 wiz Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.neomutt
|
|
PKG_OPTIONS_REQUIRED_GROUPS= display
|
|
PKG_OPTIONS_GROUP.display= curses ncurses ncursesw slang
|
|
PKG_SUPPORTED_OPTIONS= debug gpgme gssapi idn ssl smime sasl
|
|
PKG_SUPPORTED_OPTIONS+= tokyocabinet notmuch lua
|
|
PKG_SUGGESTED_OPTIONS= gpgme gssapi idn ncursesw sasl smime ssl
|
|
PKG_SUGGESTED_OPTIONS+= tokyocabinet notmuch
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
###
|
|
### GSSAPI
|
|
###
|
|
CONFIGURE_ENV+= ac_cv_path_KRB5CFGPATH=${KRB5_CONFIG}
|
|
.if !empty(PKG_OPTIONS:Mgssapi)
|
|
. include "../../mk/krb5.buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-gss=${KRB5BASE}
|
|
.endif
|
|
|
|
###
|
|
### Slang
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mslang)
|
|
. include "../../devel/libslang/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-slang=${BUILDLINK_PREFIX.libslang}
|
|
.endif
|
|
|
|
###
|
|
### ncurses
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mncurses)
|
|
USE_NCURSES= yes
|
|
. include "../../devel/ncurses/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-ncurses=${BUILDLINK_PREFIX.ncurses}
|
|
.endif
|
|
|
|
###
|
|
### SASLv2
|
|
###
|
|
.if !empty(PKG_OPTIONS:Msasl)
|
|
. include "../../security/cyrus-sasl/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-sasl=${BUILDLINK_PREFIX.cyrus-sasl}
|
|
.endif
|
|
|
|
### curses
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mcurses)
|
|
. include "../../mk/curses.buildlink3.mk"
|
|
OPSYSVARS+= BUILDLINK_PASSTHRU_DIRS
|
|
BUILDLINK_PASSTHRU_DIRS.SunOS+= /usr/xpg4
|
|
CONFIGURE_ARGS.SunOS+= --with-ncurses=/usr/xpg4
|
|
LDFLAGS.SunOS+= -L/usr/xpg4/lib${LIBABISUFFIX}
|
|
LDFLAGS.SunOS+= ${COMPILER_RPATH_FLAG}/usr/xpg4/lib${LIBABISUFFIX}
|
|
.endif
|
|
|
|
###
|
|
### ncursesw
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mncursesw)
|
|
. include "../../devel/ncursesw/buildlink3.mk"
|
|
.else
|
|
SUBST_CLASSES+= curse
|
|
SUBST_MESSAGE.curse= Fixing mutt to avoid ncursesw
|
|
SUBST_STAGE.curse= pre-configure
|
|
SUBST_FILES.curse= configure.ac
|
|
SUBST_SED.curse= -e 's,for lib in ncurses ncursesw,for lib in ncurses,'
|
|
.endif
|
|
|
|
###
|
|
### SSL
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mssl)
|
|
. include "../../security/openssl/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q}
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-ssl
|
|
.endif
|
|
|
|
###
|
|
### S/MIME
|
|
###
|
|
PLIST_VARS+= smime
|
|
.if !empty(PKG_OPTIONS:Msmime)
|
|
USE_TOOLS+= perl:run
|
|
REPLACE_PERL+= */*.pl contrib/smime_keys
|
|
. include "../../security/openssl/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --smime
|
|
PLIST.smime= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-smime
|
|
.endif
|
|
|
|
###
|
|
### Header cache
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mtokyocabinet)
|
|
.include "../../databases/tokyocabinet/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --tokyocabinet
|
|
CONFIGURE_ARGS+= --disable-gdbm
|
|
CONFIGURE_ARGS+= --disable-bdb
|
|
.else
|
|
BDB_ACCEPTED= db4 db5
|
|
BUILDLINK_TRANSFORM+= l:db:${BDB_TYPE}
|
|
.include "../../mk/bdb.buildlink3.mk"
|
|
CONFIGURE_ARGS+= --bdb
|
|
CONFIGURE_ARGS+= --disable-gdbm
|
|
# BDB_INCLUDE_DIR_ and BDB_LIB_DIR don't have to be particularly accurate
|
|
# since the real -I and -L flags are added by buildlink already.
|
|
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
|
|
|
|
###
|
|
### Internationalized Domain Names
|
|
###
|
|
.if !empty(PKG_OPTIONS:Midn)
|
|
. include "../../devel/libidn/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-idn=${BUILDLINK_PREFIX.libidn}
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-idn
|
|
.endif
|
|
|
|
###
|
|
### Enable debugging support
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
|
CFLAGS+= -g
|
|
.endif
|
|
|
|
###
|
|
### gpgme support
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mgpgme)
|
|
. include "../../security/gpgme/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --gpgme
|
|
CONFIGURE_ARGS+= --with-gpgme=${BUILDLINK_PREFIX.gpgme}
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-gpgme
|
|
.endif
|
|
|
|
###
|
|
### notmuch support
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mnotmuch)
|
|
.include "../../mail/notmuch/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --notmuch
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-notmuch
|
|
.endif
|
|
|
|
###
|
|
### lua support
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mlua)
|
|
.include "../../lang/lua/buildlink3.mk"
|
|
.include "../../lang/lua/tool.mk"
|
|
CONFIGURE_ARGS+= --lua
|
|
CONFIGURE_ARGS+= --with-lua=${BUILDLINK_PREFIX.lua}
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-lua
|
|
.endif
|