| @@ -1,28 +1,28 @@ | | | @@ -1,28 +1,28 @@ |
1 | # $NetBSD: options.mk,v 1.20 2016/02/25 15:00:51 jperkin Exp $ | | 1 | # $NetBSD: options.mk,v 1.21 2016/06/01 21:56:12 tonio 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 | # un-comment out the following lines whenever updating distinfo | | 14 | # un-comment out the following lines whenever updating distinfo |
14 | # and patches are up-to-date | | 15 | # and patches are up-to-date |
15 | #PKG_SUGGESTED_OPTIONS+= mutt-compressed-mbox | | | |
16 | #PKG_SUGGESTED_OPTIONS+= mutt-sidebar | | 16 | #PKG_SUGGESTED_OPTIONS+= mutt-sidebar |
17 | | | 17 | |
18 | .include "../../mk/bsd.options.mk" | | 18 | .include "../../mk/bsd.options.mk" |
19 | | | 19 | |
20 | ### | | 20 | ### |
21 | ### Slang | | 21 | ### Slang |
22 | ### | | 22 | ### |
23 | .if !empty(PKG_OPTIONS:Mslang) | | 23 | .if !empty(PKG_OPTIONS:Mslang) |
24 | . include "../../devel/libslang/buildlink3.mk" | | 24 | . include "../../devel/libslang/buildlink3.mk" |
25 | CONFIGURE_ARGS+= --with-slang=${BUILDLINK_PREFIX.libslang} | | 25 | CONFIGURE_ARGS+= --with-slang=${BUILDLINK_PREFIX.libslang} |
26 | .endif | | 26 | .endif |
27 | | | 27 | |
28 | ### | | 28 | ### |
| @@ -112,39 +112,43 @@ CONFIGURE_ENV+= BDB_INCLUDE_DIR=${BDBBA | | | @@ -112,39 +112,43 @@ CONFIGURE_ENV+= BDB_INCLUDE_DIR=${BDBBA |
112 | CONFIGURE_ENV+= BDB_LIB_DIR=${BDBBASE}/lib | | 112 | CONFIGURE_ENV+= BDB_LIB_DIR=${BDBBASE}/lib |
113 | CONFIGURE_ENV+= BDB_LIB=${BDB_LIBS:S/^-l//:M*:Q} | | 113 | CONFIGURE_ENV+= BDB_LIB=${BDB_LIBS:S/^-l//:M*:Q} |
114 | . endif | | 114 | . endif |
115 | .else | | 115 | .else |
116 | CONFIGURE_ARGS+= --disable-hcache | | 116 | CONFIGURE_ARGS+= --disable-hcache |
117 | .endif | | 117 | .endif |
118 | | | 118 | |
119 | ### | | 119 | ### |
120 | ### Compressed mail boxes | | 120 | ### Compressed mail boxes |
121 | ### | | 121 | ### |
122 | PLIST_VARS+= compressed_mbox | | 122 | PLIST_VARS+= compressed_mbox |
123 | .if !empty(PKG_OPTIONS:Mmutt-compressed-mbox) | | 123 | .if !empty(PKG_OPTIONS:Mmutt-compressed-mbox) |
124 | PLIST.compressed_mbox= yes | | 124 | PLIST.compressed_mbox= yes |
125 | PATCH_SITES+= http://mutt.org.ua/download/${PKGNAME_NOREV}/ | | 125 | #PATCH_SITES+= http://mutt.org.ua/download/${PKGNAME_NOREV}/ |
126 | PATCHFILES+= patch-${PKGVERSION_NOREV}.rr.compressed.gz | | 126 | #PATCHFILES+= patch-${PKGVERSION_NOREV}.rr.compressed.gz |
| | | 127 | # use the 1.6.0 patch, as suggested by Andreas Kusalananda Kahari |
| | | 128 | PATCH_SITES+= http://mutt.org.ua/download/mutt-1.6.0/ |
| | | 129 | PATCHFILES+= patch-1.6.0.rr.compressed.gz |
127 | PATCH_DIST_STRIP= -p1 | | 130 | PATCH_DIST_STRIP= -p1 |
128 | CONFIGURE_ARGS+= --enable-compressed | | 131 | CONFIGURE_ARGS+= --enable-compressed |
129 | SUBST_CLASSES+= compress | | 132 | SUBST_CLASSES+= compress |
130 | SUBST_MESSAGE.compress= Patch Makefile.in to avoid autoreconf for compress | | 133 | SUBST_MESSAGE.compress= Patch Makefile.in to avoid autoreconf for compress |
131 | SUBST_STAGE.compress= post-patch | | 134 | SUBST_STAGE.compress= post-patch |
132 | SUBST_FILES.compress= Makefile.in | | 135 | SUBST_FILES.compress= Makefile.in |
133 | SUBST_SED.compress= -e 's,^mutt_SOURCES = ,mutt_SOURCES = compress.c ,' | | 136 | SUBST_SED.compress= -e 's,^mutt_SOURCES = ,mutt_SOURCES = compress.c ,' |
134 | SUBST_SED.compress+= -e 's,^EXTRA_DIST = ,EXTRA_DIST = compress.h ,' | | 137 | SUBST_SED.compress+= -e 's,^EXTRA_DIST = ,EXTRA_DIST = compress.h ,' |
135 | SUBST_SED.compress+= -e 's,^mutt_OBJECTS = ,mutt_OBJECTS = compress.o ,' | | 138 | SUBST_SED.compress+= -e 's,^mutt_OBJECTS = ,mutt_OBJECTS = compress.o ,' |
136 | # add xsltproc to be able to regenerate the documentation | | 139 | # add xsltproc to be able to regenerate the documentation |
137 | BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt | | 140 | BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt |
| | | 141 | BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl |
138 | .endif | | 142 | .endif |
139 | | | 143 | |
140 | ### | | 144 | ### |
141 | ### Internal SMTP relay support | | 145 | ### Internal SMTP relay support |
142 | ### | | 146 | ### |
143 | .if !empty(PKG_OPTIONS:Mmutt-smtp) | | 147 | .if !empty(PKG_OPTIONS:Mmutt-smtp) |
144 | CONFIGURE_ARGS+= --enable-smtp | | 148 | CONFIGURE_ARGS+= --enable-smtp |
145 | .else | | 149 | .else |
146 | CONFIGURE_ARGS+= --disable-smtp | | 150 | CONFIGURE_ARGS+= --disable-smtp |
147 | .endif | | 151 | .endif |
148 | | | 152 | |
149 | ### | | 153 | ### |
150 | ### Sidebar support | | 154 | ### Sidebar support |