| @@ -1,30 +1,23 @@ | | | @@ -1,30 +1,23 @@ |
1 | # $NetBSD: options.mk,v 1.6 2017/03/12 20:58:20 wiz Exp $ | | 1 | # $NetBSD: options.mk,v 1.7 2017/06/21 07:10:56 wiz Exp $ |
2 | | | | |
3 | # Global and legacy options | | | |
4 | | | 2 | |
5 | PKG_OPTIONS_VAR= PKG_OPTIONS.neomutt | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.neomutt |
6 | PKG_OPTIONS_REQUIRED_GROUPS= display | | 4 | PKG_OPTIONS_REQUIRED_GROUPS= display |
7 | PKG_OPTIONS_GROUP.display= slang ncurses ncursesw curses | | 5 | PKG_OPTIONS_GROUP.display= slang ncurses ncursesw curses |
8 | PKG_SUPPORTED_OPTIONS= debug gpgme gssapi idn ssl smime sasl | | 6 | PKG_SUPPORTED_OPTIONS= debug gpgme gssapi idn ssl smime sasl |
9 | PKG_SUPPORTED_OPTIONS+= mutt-hcache tokyocabinet mutt-smtp | | 7 | PKG_SUPPORTED_OPTIONS+= mutt-hcache tokyocabinet |
10 | PKG_SUPPORTED_OPTIONS+= mutt-compressed-mbox | | 8 | PKG_SUGGESTED_OPTIONS= ncursesw gpgme idn mutt-hcache sasl smime ssl |
11 | PKG_SUPPORTED_OPTIONS+= mutt-sidebar | | | |
12 | PKG_SUGGESTED_OPTIONS= ncursesw gpgme idn mutt-hcache mutt-smtp sasl smime ssl | | | |
13 | PKG_SUGGESTED_OPTIONS+= gssapi | | 9 | PKG_SUGGESTED_OPTIONS+= gssapi |
14 | PKG_SUGGESTED_OPTIONS+= mutt-compressed-mbox | | 10 | PKG_SUGGESTED_OPTIONS+= mutt-hcache tokyocabinet |
15 | PKG_SUGGESTED_OPTIONS+= mutt-hcache tokyocabinet mutt-smtp | | | |
16 | PKG_SUGGESTED_OPTIONS+= mutt-compressed-mbox | | | |
17 | PKG_SUGGESTED_OPTIONS+= mutt-sidebar | | | |
18 | | | 11 | |
19 | .include "../../mk/bsd.options.mk" | | 12 | .include "../../mk/bsd.options.mk" |
20 | | | 13 | |
21 | ### | | 14 | ### |
22 | ### GSSAPI | | 15 | ### GSSAPI |
23 | ### | | 16 | ### |
24 | | | 17 | |
25 | .if !empty(PKG_OPTIONS:Mgssapi) | | 18 | .if !empty(PKG_OPTIONS:Mgssapi) |
26 | . include "../../mk/krb5.buildlink3.mk" | | 19 | . include "../../mk/krb5.buildlink3.mk" |
27 | CONFIGURE_ARGS+= --with-gss=${KRB5BASE} | | 20 | CONFIGURE_ARGS+= --with-gss=${KRB5BASE} |
28 | .endif | | 21 | .endif |
29 | | | 22 | |
30 | ### | | 23 | ### |
| @@ -115,45 +108,28 @@ BUILDLINK_TRANSFORM+= l:db:${BDB_TYPE} | | | @@ -115,45 +108,28 @@ BUILDLINK_TRANSFORM+= l:db:${BDB_TYPE} |
115 | . include "../../mk/bdb.buildlink3.mk" | | 108 | . include "../../mk/bdb.buildlink3.mk" |
116 | CONFIGURE_ARGS+= --with-bdb | | 109 | CONFIGURE_ARGS+= --with-bdb |
117 | CONFIGURE_ARGS+= --without-gdbm | | 110 | CONFIGURE_ARGS+= --without-gdbm |
118 | # BDB_INCLUDE_DIR_ and BDB_LIB_DIR don't have to be particularly accurate | | 111 | # BDB_INCLUDE_DIR_ and BDB_LIB_DIR don't have to be particularly accurate |
119 | # since the real -I and -L flags are added by buildlink already. | | 112 | # since the real -I and -L flags are added by buildlink already. |
120 | CONFIGURE_ENV+= BDB_INCLUDE_DIR=${BDBBASE}/include | | 113 | CONFIGURE_ENV+= BDB_INCLUDE_DIR=${BDBBASE}/include |
121 | CONFIGURE_ENV+= BDB_LIB_DIR=${BDBBASE}/lib | | 114 | CONFIGURE_ENV+= BDB_LIB_DIR=${BDBBASE}/lib |
122 | CONFIGURE_ENV+= BDB_LIB=${BDB_LIBS:S/^-l//:M*:Q} | | 115 | CONFIGURE_ENV+= BDB_LIB=${BDB_LIBS:S/^-l//:M*:Q} |
123 | . endif | | 116 | . endif |
124 | .else | | 117 | .else |
125 | CONFIGURE_ARGS+= --disable-hcache | | 118 | CONFIGURE_ARGS+= --disable-hcache |
126 | .endif | | 119 | .endif |
127 | | | 120 | |
128 | ### | | 121 | #BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt |
129 | ### Compressed mail boxes | | 122 | #BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl |
130 | ### | | | |
131 | PLIST_VARS+= compressed_mbox | | | |
132 | .if !empty(PKG_OPTIONS:Mmutt-compressed-mbox) | | | |
133 | CONFIGURE_ARGS+= --enable-compressed | | | |
134 | # add xsltproc to be able to regenerate the documentation | | | |
135 | BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt | | | |
136 | BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl | | | |
137 | .endif | | | |
138 | | | | |
139 | ### | | | |
140 | ### Internal SMTP relay support | | | |
141 | ### | | | |
142 | .if !empty(PKG_OPTIONS:Mmutt-smtp) | | | |
143 | CONFIGURE_ARGS+= --enable-smtp | | | |
144 | .else | | | |
145 | CONFIGURE_ARGS+= --disable-smtp | | | |
146 | .endif | | | |
147 | | | 123 | |
148 | ### | | 124 | ### |
149 | ### Internationalized Domain Names | | 125 | ### Internationalized Domain Names |
150 | ### | | 126 | ### |
151 | .if !empty(PKG_OPTIONS:Midn) | | 127 | .if !empty(PKG_OPTIONS:Midn) |
152 | . include "../../devel/libidn/buildlink3.mk" | | 128 | . include "../../devel/libidn/buildlink3.mk" |
153 | CONFIGURE_ARGS+= --with-idn=${BUILDLINK_PREFIX.libidn} | | 129 | CONFIGURE_ARGS+= --with-idn=${BUILDLINK_PREFIX.libidn} |
154 | .else | | 130 | .else |
155 | CONFIGURE_ARGS+= --with-idn=no | | 131 | CONFIGURE_ARGS+= --with-idn=no |
156 | .endif | | 132 | .endif |
157 | | | 133 | |
158 | ### | | 134 | ### |
159 | ### Enable debugging support | | 135 | ### Enable debugging support |
| @@ -163,22 +139,13 @@ CONFIGURE_ARGS+= --enable-debug | | | @@ -163,22 +139,13 @@ CONFIGURE_ARGS+= --enable-debug |
163 | CFLAGS+= -g | | 139 | CFLAGS+= -g |
164 | .endif | | 140 | .endif |
165 | | | 141 | |
166 | ### | | 142 | ### |
167 | ### gpgme support | | 143 | ### gpgme support |
168 | ### | | 144 | ### |
169 | .if !empty(PKG_OPTIONS:Mgpgme) | | 145 | .if !empty(PKG_OPTIONS:Mgpgme) |
170 | . include "../../security/gpgme/buildlink3.mk" | | 146 | . include "../../security/gpgme/buildlink3.mk" |
171 | CONFIGURE_ARGS+= --enable-gpgme | | 147 | CONFIGURE_ARGS+= --enable-gpgme |
172 | CONFIGURE_ARGS+= --with-gpgme-prefix=${BUILDLINK_PREFIX.gpgme} | | 148 | CONFIGURE_ARGS+= --with-gpgme-prefix=${BUILDLINK_PREFIX.gpgme} |
173 | .else | | 149 | .else |
174 | CONFIGURE_ARGS+= --disable-gpgme | | 150 | CONFIGURE_ARGS+= --disable-gpgme |
175 | .endif | | 151 | .endif |
176 | | | | |
177 | ### | | | |
178 | ### sidebar support | | | |
179 | ### | | | |
180 | .if !empty(PKG_OPTIONS:Mmutt-sidebar) | | | |
181 | CONFIGURE_ARGS+= --enable-sidebar | | | |
182 | .else | | | |
183 | CONFIGURE_ARGS+= --disable-sidebar | | | |
184 | .endif | | | |