| @@ -1,32 +1,36 @@ | | | @@ -1,32 +1,36 @@ |
1 | # $NetBSD: options.mk,v 1.33 2020/01/17 16:39:46 nia Exp $ | | 1 | # $NetBSD: options.mk,v 1.34 2020/04/08 08:40:00 rhialto Exp $ |
2 | | | 2 | |
3 | # Global and legacy options | | 3 | # Global and legacy options |
4 | | | 4 | |
5 | PKG_OPTIONS_VAR= PKG_OPTIONS.mutt | | 5 | PKG_OPTIONS_VAR= PKG_OPTIONS.mutt |
6 | PKG_OPTIONS_REQUIRED_GROUPS= display | | 6 | PKG_OPTIONS_REQUIRED_GROUPS= display |
7 | PKG_OPTIONS_OPTIONAL_GROUPS= ssl | | 7 | PKG_OPTIONS_OPTIONAL_GROUPS= ssl |
8 | PKG_OPTIONS_GROUP.display= curses wide-curses slang | | 8 | PKG_OPTIONS_GROUP.display= curses wide-curses slang |
9 | PKG_OPTIONS_GROUP.ssl= gnutls openssl | | 9 | PKG_OPTIONS_GROUP.ssl= gnutls openssl |
10 | PKG_SUPPORTED_OPTIONS= debug gpgme idn smime sasl | | 10 | PKG_SUPPORTED_OPTIONS= debug gpgme idn smime sasl |
11 | # TODO: add kyoto cabinet and lmdb backend options for header cache | | 11 | # TODO: add kyoto cabinet and lmdb backend options for header cache |
12 | PKG_SUPPORTED_OPTIONS+= mutt-hcache mutt-compressed-mbox tokyocabinet mutt-smtp | | 12 | PKG_SUPPORTED_OPTIONS+= mutt-hcache mutt-compressed-mbox tokyocabinet mutt-smtp |
13 | PKG_SUPPORTED_OPTIONS+= gssapi | | 13 | PKG_SUPPORTED_OPTIONS+= gssapi |
14 | PKG_SUGGESTED_OPTIONS= curses gpgme mutt-hcache mutt-smtp smime openssl | | 14 | PKG_SUGGESTED_OPTIONS= curses gpgme mutt-hcache mutt-smtp smime openssl |
15 | PKG_SUGGESTED_OPTIONS+= gssapi mutt-compressed-mbox sasl | | 15 | PKG_SUGGESTED_OPTIONS+= gssapi mutt-compressed-mbox sasl |
16 | # remove after 2019Q1 | | 16 | # remove after 2019Q1 |
17 | PKG_OPTIONS_LEGACY_OPTS+= ncurses:curses ncursesw:wide-curses | | 17 | PKG_OPTIONS_LEGACY_OPTS+= ncurses:curses ncursesw:wide-curses |
18 | PKG_OPTIONS_LEGACY_OPTS+= ssl:openssl | | 18 | PKG_OPTIONS_LEGACY_OPTS+= ssl:openssl |
19 | | | 19 | |
| | | 20 | # Must be at the top; some other buildlink files indirectly |
| | | 21 | # include bdb.buildlink3.mk. |
| | | 22 | BDB_ACCEPTED= db4 db5 |
| | | 23 | |
20 | .include "../../mk/bsd.options.mk" | | 24 | .include "../../mk/bsd.options.mk" |
21 | | | 25 | |
22 | ### | | 26 | ### |
23 | ### GSSAPI | | 27 | ### GSSAPI |
24 | ### | | 28 | ### |
25 | CONFIGURE_ENV+= ac_cv_path_KRB5CFGPATH=${KRB5_CONFIG} | | 29 | CONFIGURE_ENV+= ac_cv_path_KRB5CFGPATH=${KRB5_CONFIG} |
26 | .if !empty(PKG_OPTIONS:Mgssapi) | | 30 | .if !empty(PKG_OPTIONS:Mgssapi) |
27 | . include "../../mk/krb5.buildlink3.mk" | | 31 | . include "../../mk/krb5.buildlink3.mk" |
28 | CONFIGURE_ARGS+= --with-gss=${KRB5BASE} | | 32 | CONFIGURE_ARGS+= --with-gss=${KRB5BASE} |
29 | .endif | | 33 | .endif |
30 | | | 34 | |
31 | ### curses | | 35 | ### curses |
32 | ### | | 36 | ### |
| @@ -95,27 +99,26 @@ CONFIGURE_ARGS+= --disable-smime | | | @@ -95,27 +99,26 @@ CONFIGURE_ARGS+= --disable-smime |
95 | .endif | | 99 | .endif |
96 | | | 100 | |
97 | ### | | 101 | ### |
98 | ### Header cache | | 102 | ### Header cache |
99 | ### | | 103 | ### |
100 | .if !empty(PKG_OPTIONS:Mmutt-hcache) | | 104 | .if !empty(PKG_OPTIONS:Mmutt-hcache) |
101 | . if !empty(PKG_OPTIONS:Mtokyocabinet) | | 105 | . if !empty(PKG_OPTIONS:Mtokyocabinet) |
102 | . include "../../databases/tokyocabinet/buildlink3.mk" | | 106 | . include "../../databases/tokyocabinet/buildlink3.mk" |
103 | CONFIGURE_ARGS+= --enable-hcache | | 107 | CONFIGURE_ARGS+= --enable-hcache |
104 | CONFIGURE_ARGS+= --enable-tokyocabinet | | 108 | CONFIGURE_ARGS+= --enable-tokyocabinet |
105 | CONFIGURE_ARGS+= --without-gdbm | | 109 | CONFIGURE_ARGS+= --without-gdbm |
106 | CONFIGURE_ARGS+= --without-bdb | | 110 | CONFIGURE_ARGS+= --without-bdb |
107 | . else | | 111 | . else |
108 | BDB_ACCEPTED= db4 db5 | | | |
109 | BUILDLINK_TRANSFORM+= l:db:${BDB_TYPE} | | 112 | BUILDLINK_TRANSFORM+= l:db:${BDB_TYPE} |
110 | . include "../../mk/bdb.buildlink3.mk" | | 113 | . include "../../mk/bdb.buildlink3.mk" |
111 | CONFIGURE_ARGS+= --enable-hcache | | 114 | CONFIGURE_ARGS+= --enable-hcache |
112 | CONFIGURE_ARGS+= --without-gdbm | | 115 | CONFIGURE_ARGS+= --without-gdbm |
113 | # BDB_INCLUDE_DIR_ and BDB_LIB_DIR don't have to be particularly accurate | | 116 | # BDB_INCLUDE_DIR_ and BDB_LIB_DIR don't have to be particularly accurate |
114 | # since the real -I and -L flags are added by buildlink already. | | 117 | # since the real -I and -L flags are added by buildlink already. |
115 | CONFIGURE_ENV+= BDB_INCLUDE_DIR=${BDBBASE}/include | | 118 | CONFIGURE_ENV+= BDB_INCLUDE_DIR=${BDBBASE}/include |
116 | CONFIGURE_ENV+= BDB_LIB_DIR=${BDBBASE}/lib | | 119 | CONFIGURE_ENV+= BDB_LIB_DIR=${BDBBASE}/lib |
117 | CONFIGURE_ENV+= BDB_LIB=${BDB_LIBS:S/^-l//:M*:Q} | | 120 | CONFIGURE_ENV+= BDB_LIB=${BDB_LIBS:S/^-l//:M*:Q} |
118 | . endif | | 121 | . endif |
119 | .else | | 122 | .else |
120 | CONFIGURE_ARGS+= --disable-hcache | | 123 | CONFIGURE_ARGS+= --disable-hcache |
121 | .endif | | 124 | .endif |