| @@ -1,184 +1,151 @@ | | | @@ -1,184 +1,151 @@ |
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 | ### |
31 | ### Slang | | 24 | ### Slang |
32 | ### | | 25 | ### |
33 | .if !empty(PKG_OPTIONS:Mslang) | | 26 | .if !empty(PKG_OPTIONS:Mslang) |
34 | . include "../../devel/libslang/buildlink3.mk" | | 27 | . include "../../devel/libslang/buildlink3.mk" |
35 | CONFIGURE_ARGS+= --with-slang=${BUILDLINK_PREFIX.libslang} | | 28 | CONFIGURE_ARGS+= --with-slang=${BUILDLINK_PREFIX.libslang} |
36 | .endif | | 29 | .endif |
37 | | | 30 | |
38 | ### | | 31 | ### |
39 | ### ncurses | | 32 | ### ncurses |
40 | ### | | 33 | ### |
41 | .if !empty(PKG_OPTIONS:Mncurses) | | 34 | .if !empty(PKG_OPTIONS:Mncurses) |
42 | USE_NCURSES= yes | | 35 | USE_NCURSES= yes |
43 | . include "../../devel/ncurses/buildlink3.mk" | | 36 | . include "../../devel/ncurses/buildlink3.mk" |
44 | CONFIGURE_ARGS+= --with-curses=${BUILDLINK_PREFIX.ncurses} | | 37 | CONFIGURE_ARGS+= --with-curses=${BUILDLINK_PREFIX.ncurses} |
45 | .endif | | 38 | .endif |
46 | | | 39 | |
47 | ### | | 40 | ### |
48 | ### SASLv2 | | 41 | ### SASLv2 |
49 | ### | | 42 | ### |
50 | .if !empty(PKG_OPTIONS:Msasl) | | 43 | .if !empty(PKG_OPTIONS:Msasl) |
51 | . include "../../security/cyrus-sasl/buildlink3.mk" | | 44 | . include "../../security/cyrus-sasl/buildlink3.mk" |
52 | CONFIGURE_ARGS+= --with-sasl=${BUILDLINK_PREFIX.cyrus-sasl} | | 45 | CONFIGURE_ARGS+= --with-sasl=${BUILDLINK_PREFIX.cyrus-sasl} |
53 | .endif | | 46 | .endif |
54 | | | 47 | |
55 | ### curses | | 48 | ### curses |
56 | ### | | 49 | ### |
57 | .if !empty(PKG_OPTIONS:Mcurses) | | 50 | .if !empty(PKG_OPTIONS:Mcurses) |
58 | . include "../../mk/curses.buildlink3.mk" | | 51 | . include "../../mk/curses.buildlink3.mk" |
59 | OPSYSVARS+= BUILDLINK_PASSTHRU_DIRS | | 52 | OPSYSVARS+= BUILDLINK_PASSTHRU_DIRS |
60 | BUILDLINK_PASSTHRU_DIRS.SunOS+= /usr/xpg4 | | 53 | BUILDLINK_PASSTHRU_DIRS.SunOS+= /usr/xpg4 |
61 | CONFIGURE_ARGS.SunOS+= --with-curses=/usr/xpg4 | | 54 | CONFIGURE_ARGS.SunOS+= --with-curses=/usr/xpg4 |
62 | LDFLAGS.SunOS+= -L/usr/xpg4/lib${LIBABISUFFIX} | | 55 | LDFLAGS.SunOS+= -L/usr/xpg4/lib${LIBABISUFFIX} |
63 | LDFLAGS.SunOS+= ${COMPILER_RPATH_FLAG}/usr/xpg4/lib${LIBABISUFFIX} | | 56 | LDFLAGS.SunOS+= ${COMPILER_RPATH_FLAG}/usr/xpg4/lib${LIBABISUFFIX} |
64 | .endif | | 57 | .endif |
65 | | | 58 | |
66 | ### | | 59 | ### |
67 | ### ncursesw | | 60 | ### ncursesw |
68 | ### | | 61 | ### |
69 | .if !empty(PKG_OPTIONS:Mncursesw) | | 62 | .if !empty(PKG_OPTIONS:Mncursesw) |
70 | . include "../../devel/ncursesw/buildlink3.mk" | | 63 | . include "../../devel/ncursesw/buildlink3.mk" |
71 | .else | | 64 | .else |
72 | SUBST_CLASSES+= curse | | 65 | SUBST_CLASSES+= curse |
73 | SUBST_MESSAGE.curse= Fixing mutt to avoid ncursesw | | 66 | SUBST_MESSAGE.curse= Fixing mutt to avoid ncursesw |
74 | SUBST_STAGE.curse= post-patch | | 67 | SUBST_STAGE.curse= post-patch |
75 | SUBST_FILES.curse= configure.ac | | 68 | SUBST_FILES.curse= configure.ac |
76 | SUBST_SED.curse= -e 's,for lib in ncurses ncursesw,for lib in ncurses,' | | 69 | SUBST_SED.curse= -e 's,for lib in ncurses ncursesw,for lib in ncurses,' |
77 | .endif | | 70 | .endif |
78 | | | 71 | |
79 | ### | | 72 | ### |
80 | ### SSL | | 73 | ### SSL |
81 | ### | | 74 | ### |
82 | .if !empty(PKG_OPTIONS:Mssl) | | 75 | .if !empty(PKG_OPTIONS:Mssl) |
83 | . include "../../security/openssl/buildlink3.mk" | | 76 | . include "../../security/openssl/buildlink3.mk" |
84 | CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q} | | 77 | CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q} |
85 | .else | | 78 | .else |
86 | CONFIGURE_ARGS+= --without-ssl | | 79 | CONFIGURE_ARGS+= --without-ssl |
87 | .endif | | 80 | .endif |
88 | | | 81 | |
89 | ### | | 82 | ### |
90 | ### S/MIME | | 83 | ### S/MIME |
91 | ### | | 84 | ### |
92 | PLIST_VARS+= smime | | 85 | PLIST_VARS+= smime |
93 | .if !empty(PKG_OPTIONS:Msmime) | | 86 | .if !empty(PKG_OPTIONS:Msmime) |
94 | USE_TOOLS+= perl:run | | 87 | USE_TOOLS+= perl:run |
95 | REPLACE_PERL+= *.pl */*.pl | | 88 | REPLACE_PERL+= *.pl */*.pl |
96 | . include "../../security/openssl/buildlink3.mk" | | 89 | . include "../../security/openssl/buildlink3.mk" |
97 | CONFIGURE_ARGS+= --enable-smime | | 90 | CONFIGURE_ARGS+= --enable-smime |
98 | PLIST.smime= yes | | 91 | PLIST.smime= yes |
99 | .else | | 92 | .else |
100 | CONFIGURE_ARGS+= --disable-smime | | 93 | CONFIGURE_ARGS+= --disable-smime |
101 | .endif | | 94 | .endif |
102 | | | 95 | |
103 | ### | | 96 | ### |
104 | ### Header cache | | 97 | ### Header cache |
105 | ### | | 98 | ### |
106 | .if !empty(PKG_OPTIONS:Mmutt-hcache) | | 99 | .if !empty(PKG_OPTIONS:Mmutt-hcache) |
107 | . if !empty(PKG_OPTIONS:Mtokyocabinet) | | 100 | . if !empty(PKG_OPTIONS:Mtokyocabinet) |
108 | . include "../../databases/tokyocabinet/buildlink3.mk" | | 101 | . include "../../databases/tokyocabinet/buildlink3.mk" |
109 | CONFIGURE_ARGS+= --with-tokyocabinet | | 102 | CONFIGURE_ARGS+= --with-tokyocabinet |
110 | CONFIGURE_ARGS+= --without-gdbm | | 103 | CONFIGURE_ARGS+= --without-gdbm |
111 | CONFIGURE_ARGS+= --without-bdb | | 104 | CONFIGURE_ARGS+= --without-bdb |
112 | . else | | 105 | . else |
113 | BDB_ACCEPTED= db4 db5 | | 106 | BDB_ACCEPTED= db4 db5 |
114 | BUILDLINK_TRANSFORM+= l:db:${BDB_TYPE} | | 107 | 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 |
160 | ### | | 136 | ### |
161 | .if !empty(PKG_OPTIONS:Mdebug) | | 137 | .if !empty(PKG_OPTIONS:Mdebug) |
162 | CONFIGURE_ARGS+= --enable-debug | | 138 | 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 | | | |