| @@ -1,29 +1,26 @@ | | | @@ -1,29 +1,26 @@ |
1 | # $NetBSD: options.mk,v 1.21 2016/06/01 21:56:12 tonio Exp $ | | 1 | # $NetBSD: options.mk,v 1.22 2016/08/21 16:46:17 tnn 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_GROUP.display= slang ncurses ncursesw curses | | 7 | PKG_OPTIONS_GROUP.display= slang ncurses ncursesw curses |
8 | PKG_SUPPORTED_OPTIONS= debug gpgme idn ssl smime sasl | | 8 | PKG_SUPPORTED_OPTIONS= debug gpgme idn ssl smime sasl |
9 | PKG_SUPPORTED_OPTIONS+= mutt-hcache tokyocabinet mutt-smtp | | 9 | PKG_SUPPORTED_OPTIONS+= mutt-hcache tokyocabinet mutt-smtp |
10 | PKG_SUPPORTED_OPTIONS+= mutt-compressed-mbox | | 10 | PKG_SUPPORTED_OPTIONS+= mutt-compressed-mbox |
11 | PKG_SUPPORTED_OPTIONS+= mutt-sidebar | | 11 | PKG_SUPPORTED_OPTIONS+= mutt-sidebar |
12 | PKG_SUGGESTED_OPTIONS= curses gpgme mutt-hcache mutt-smtp smime ssl | | 12 | PKG_SUGGESTED_OPTIONS= curses gpgme mutt-hcache mutt-smtp smime ssl |
13 | PKG_SUGGESTED_OPTIONS+= mutt-compressed-mbox | | 13 | PKG_SUGGESTED_OPTIONS+= mutt-compressed-mbox |
14 | # un-comment out the following lines whenever updating distinfo | | | |
15 | # and patches are up-to-date | | | |
16 | #PKG_SUGGESTED_OPTIONS+= mutt-sidebar | | | |
17 | | | 14 | |
18 | .include "../../mk/bsd.options.mk" | | 15 | .include "../../mk/bsd.options.mk" |
19 | | | 16 | |
20 | ### | | 17 | ### |
21 | ### Slang | | 18 | ### Slang |
22 | ### | | 19 | ### |
23 | .if !empty(PKG_OPTIONS:Mslang) | | 20 | .if !empty(PKG_OPTIONS:Mslang) |
24 | . include "../../devel/libslang/buildlink3.mk" | | 21 | . include "../../devel/libslang/buildlink3.mk" |
25 | CONFIGURE_ARGS+= --with-slang=${BUILDLINK_PREFIX.libslang} | | 22 | CONFIGURE_ARGS+= --with-slang=${BUILDLINK_PREFIX.libslang} |
26 | .endif | | 23 | .endif |
27 | | | 24 | |
28 | ### | | 25 | ### |
29 | ### ncurses | | 26 | ### ncurses |
| @@ -110,27 +107,28 @@ CONFIGURE_ARGS+= --without-gdbm | | | @@ -110,27 +107,28 @@ CONFIGURE_ARGS+= --without-gdbm |
110 | # since the real -I and -L flags are added by buildlink already. | | 107 | # since the real -I and -L flags are added by buildlink already. |
111 | CONFIGURE_ENV+= BDB_INCLUDE_DIR=${BDBBASE}/include | | 108 | CONFIGURE_ENV+= BDB_INCLUDE_DIR=${BDBBASE}/include |
112 | CONFIGURE_ENV+= BDB_LIB_DIR=${BDBBASE}/lib | | 109 | CONFIGURE_ENV+= BDB_LIB_DIR=${BDBBASE}/lib |
113 | CONFIGURE_ENV+= BDB_LIB=${BDB_LIBS:S/^-l//:M*:Q} | | 110 | CONFIGURE_ENV+= BDB_LIB=${BDB_LIBS:S/^-l//:M*:Q} |
114 | . endif | | 111 | . endif |
115 | .else | | 112 | .else |
116 | CONFIGURE_ARGS+= --disable-hcache | | 113 | CONFIGURE_ARGS+= --disable-hcache |
117 | .endif | | 114 | .endif |
118 | | | 115 | |
119 | ### | | 116 | ### |
120 | ### Compressed mail boxes | | 117 | ### Compressed mail boxes |
121 | ### | | 118 | ### |
122 | PLIST_VARS+= compressed_mbox | | 119 | PLIST_VARS+= compressed_mbox |
123 | .if !empty(PKG_OPTIONS:Mmutt-compressed-mbox) | | 120 | .if !empty(PKG_OPTIONS:Mmutt-compressed-mbox) \ |
| | | 121 | || make(distinfo) || make(mps) || make(makepatchsum) |
124 | PLIST.compressed_mbox= yes | | 122 | PLIST.compressed_mbox= yes |
125 | #PATCH_SITES+= http://mutt.org.ua/download/${PKGNAME_NOREV}/ | | 123 | #PATCH_SITES+= http://mutt.org.ua/download/${PKGNAME_NOREV}/ |
126 | #PATCHFILES+= patch-${PKGVERSION_NOREV}.rr.compressed.gz | | 124 | #PATCHFILES+= patch-${PKGVERSION_NOREV}.rr.compressed.gz |
127 | # use the 1.6.0 patch, as suggested by Andreas Kusalananda Kahari | | 125 | # use the 1.6.0 patch, as suggested by Andreas Kusalananda Kahari |
128 | PATCH_SITES+= http://mutt.org.ua/download/mutt-1.6.0/ | | 126 | PATCH_SITES+= http://mutt.org.ua/download/mutt-1.6.0/ |
129 | PATCHFILES+= patch-1.6.0.rr.compressed.gz | | 127 | PATCHFILES+= patch-1.6.0.rr.compressed.gz |
130 | PATCH_DIST_STRIP= -p1 | | 128 | PATCH_DIST_STRIP= -p1 |
131 | CONFIGURE_ARGS+= --enable-compressed | | 129 | CONFIGURE_ARGS+= --enable-compressed |
132 | SUBST_CLASSES+= compress | | 130 | SUBST_CLASSES+= compress |
133 | SUBST_MESSAGE.compress= Patch Makefile.in to avoid autoreconf for compress | | 131 | SUBST_MESSAGE.compress= Patch Makefile.in to avoid autoreconf for compress |
134 | SUBST_STAGE.compress= post-patch | | 132 | SUBST_STAGE.compress= post-patch |
135 | SUBST_FILES.compress= Makefile.in | | 133 | SUBST_FILES.compress= Makefile.in |
136 | SUBST_SED.compress= -e 's,^mutt_SOURCES = ,mutt_SOURCES = compress.c ,' | | 134 | SUBST_SED.compress= -e 's,^mutt_SOURCES = ,mutt_SOURCES = compress.c ,' |
| @@ -143,27 +141,28 @@ BUILD_DEPENDS+= docbook-xsl-[0-9]*:../. | | | @@ -143,27 +141,28 @@ BUILD_DEPENDS+= docbook-xsl-[0-9]*:../. |
143 | | | 141 | |
144 | ### | | 142 | ### |
145 | ### Internal SMTP relay support | | 143 | ### Internal SMTP relay support |
146 | ### | | 144 | ### |
147 | .if !empty(PKG_OPTIONS:Mmutt-smtp) | | 145 | .if !empty(PKG_OPTIONS:Mmutt-smtp) |
148 | CONFIGURE_ARGS+= --enable-smtp | | 146 | CONFIGURE_ARGS+= --enable-smtp |
149 | .else | | 147 | .else |
150 | CONFIGURE_ARGS+= --disable-smtp | | 148 | CONFIGURE_ARGS+= --disable-smtp |
151 | .endif | | 149 | .endif |
152 | | | 150 | |
153 | ### | | 151 | ### |
154 | ### Sidebar support | | 152 | ### Sidebar support |
155 | ### | | 153 | ### |
156 | .if !empty(PKG_OPTIONS:Mmutt-sidebar) | | 154 | .if !empty(PKG_OPTIONS:Mmutt-sidebar) \ |
| | | 155 | || make(distinfo) || make(mps) || make(makepatchsum) |
157 | # http://www.lunar-linux.org/mutt-sidebar/ | | 156 | # http://www.lunar-linux.org/mutt-sidebar/ |
158 | PATCH_SITES+= http://lunar-linux.org/~tchan/mutt/ | | 157 | PATCH_SITES+= http://lunar-linux.org/~tchan/mutt/ |
159 | PATCHFILES+= patch-1.5.23.sidebar.20140412.txt | | 158 | PATCHFILES+= patch-1.5.23.sidebar.20140412.txt |
160 | PATCH_DIST_STRIP= -p1 | | 159 | PATCH_DIST_STRIP= -p1 |
161 | PATCH_FUZZ_FACTOR= -F1 | | 160 | PATCH_FUZZ_FACTOR= -F1 |
162 | .endif | | 161 | .endif |
163 | | | 162 | |
164 | ### | | 163 | ### |
165 | ### Internationalized Domain Names | | 164 | ### Internationalized Domain Names |
166 | ### | | 165 | ### |
167 | .if !empty(PKG_OPTIONS:Midn) | | 166 | .if !empty(PKG_OPTIONS:Midn) |
168 | . include "../../devel/libidn/buildlink3.mk" | | 167 | . include "../../devel/libidn/buildlink3.mk" |
169 | CONFIGURE_ARGS+= --with-idn=${BUILDLINK_PREFIX.libidn} | | 168 | CONFIGURE_ARGS+= --with-idn=${BUILDLINK_PREFIX.libidn} |