| @@ -1,22 +1,22 @@ | | | @@ -1,22 +1,22 @@ |
1 | # $NetBSD: options.mk,v 1.42 2010/12/20 14:03:39 tonio Exp $ | | 1 | # $NetBSD: options.mk,v 1.43 2012/08/28 20:15:41 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 mutt-smtp | | 9 | PKG_SUPPORTED_OPTIONS+= mutt-hcache tokyocabinet mutt-smtp |
10 | # Comment the following line out on updates. | | 10 | # Comment the following line out on updates. |
11 | PKG_SUPPORTED_OPTIONS+= mutt-compressed-mbox | | 11 | PKG_SUPPORTED_OPTIONS+= mutt-compressed-mbox |
12 | PKG_SUPPORTED_OPTIONS+= mutt-sidebar | | 12 | PKG_SUPPORTED_OPTIONS+= mutt-sidebar |
13 | #PKG_SUPPORTED_OPTIONS+= mutt-xlabel | | 13 | #PKG_SUPPORTED_OPTIONS+= mutt-xlabel |
14 | PKG_SUGGESTED_OPTIONS= ssl smime curses | | 14 | PKG_SUGGESTED_OPTIONS= ssl smime curses |
15 | | | 15 | |
16 | .include "../../mk/bsd.options.mk" | | 16 | .include "../../mk/bsd.options.mk" |
17 | | | 17 | |
18 | ### | | 18 | ### |
19 | ### Slang | | 19 | ### Slang |
20 | ### | | 20 | ### |
21 | .if !empty(PKG_OPTIONS:Mslang) | | 21 | .if !empty(PKG_OPTIONS:Mslang) |
22 | . include "../../devel/libslang/buildlink3.mk" | | 22 | . include "../../devel/libslang/buildlink3.mk" |
| @@ -77,36 +77,44 @@ PLIST_VARS+= smime | | | @@ -77,36 +77,44 @@ PLIST_VARS+= smime |
77 | USE_TOOLS+= perl:run | | 77 | USE_TOOLS+= perl:run |
78 | REPLACE_PERL+= *.pl */*.pl | | 78 | REPLACE_PERL+= *.pl */*.pl |
79 | . include "../../security/openssl/buildlink3.mk" | | 79 | . include "../../security/openssl/buildlink3.mk" |
80 | CONFIGURE_ARGS+= --enable-smime | | 80 | CONFIGURE_ARGS+= --enable-smime |
81 | PLIST.smime= yes | | 81 | PLIST.smime= yes |
82 | .else | | 82 | .else |
83 | CONFIGURE_ARGS+= --disable-smime | | 83 | CONFIGURE_ARGS+= --disable-smime |
84 | .endif | | 84 | .endif |
85 | | | 85 | |
86 | ### | | 86 | ### |
87 | ### Header cache | | 87 | ### Header cache |
88 | ### | | 88 | ### |
89 | .if !empty(PKG_OPTIONS:Mmutt-hcache) | | 89 | .if !empty(PKG_OPTIONS:Mmutt-hcache) |
| | | 90 | . if !empty(PKG_OPTIONS:Mtokyocabinet) |
| | | 91 | . include "../../databases/tokyocabinet/buildlink3.mk" |
| | | 92 | CONFIGURE_ARGS+= --enable-hcache |
| | | 93 | CONFIGURE_ARGS+= --enable-tokyocabinet |
| | | 94 | CONFIGURE_ARGS+= --without-gdbm |
| | | 95 | CONFIGURE_ARGS+= --without-bdb |
| | | 96 | . else |
90 | BDB_ACCEPTED= db4 db5 | | 97 | BDB_ACCEPTED= db4 db5 |
91 | BUILDLINK_TRANSFORM+= l:db:${BDB_TYPE} | | 98 | BUILDLINK_TRANSFORM+= l:db:${BDB_TYPE} |
92 | . include "../../mk/bdb.buildlink3.mk" | | 99 | . include "../../mk/bdb.buildlink3.mk" |
93 | CONFIGURE_ARGS+= --enable-hcache | | 100 | CONFIGURE_ARGS+= --enable-hcache |
94 | CONFIGURE_ARGS+= --without-gdbm | | 101 | CONFIGURE_ARGS+= --without-gdbm |
95 | # BDB_INCLUDE_DIR_ and BDB_LIB_DIR don't have to be particularly accurate | | 102 | # BDB_INCLUDE_DIR_ and BDB_LIB_DIR don't have to be particularly accurate |
96 | # since the real -I and -L flags are added by buildlink already. | | 103 | # since the real -I and -L flags are added by buildlink already. |
97 | CONFIGURE_ENV+= BDB_INCLUDE_DIR=${BDBBASE}/include | | 104 | CONFIGURE_ENV+= BDB_INCLUDE_DIR=${BDBBASE}/include |
98 | CONFIGURE_ENV+= BDB_LIB_DIR=${BDBBASE}/lib | | 105 | CONFIGURE_ENV+= BDB_LIB_DIR=${BDBBASE}/lib |
99 | CONFIGURE_ENV+= BDB_LIB=${BDB_LIBS:S/^-l//:M*:Q} | | 106 | CONFIGURE_ENV+= BDB_LIB=${BDB_LIBS:S/^-l//:M*:Q} |
| | | 107 | . endif |
100 | .else | | 108 | .else |
101 | CONFIGURE_ARGS+= --disable-hcache | | 109 | CONFIGURE_ARGS+= --disable-hcache |
102 | .endif | | 110 | .endif |
103 | | | 111 | |
104 | ### | | 112 | ### |
105 | ### Compressed mail boxes | | 113 | ### Compressed mail boxes |
106 | ### | | 114 | ### |
107 | .if !empty(PKG_OPTIONS:Mmutt-compressed-mbox) | | 115 | .if !empty(PKG_OPTIONS:Mmutt-compressed-mbox) |
108 | PATCH_SITES+= http://mutt.org.ua/download/${PKGNAME_NOREV}/ | | 116 | PATCH_SITES+= http://mutt.org.ua/download/${PKGNAME_NOREV}/ |
109 | PATCHFILES+= patch-${PKGVERSION_NOREV}.rr.compressed.gz | | 117 | PATCHFILES+= patch-${PKGVERSION_NOREV}.rr.compressed.gz |
110 | PATCH_DIST_STRIP= -p1 | | 118 | PATCH_DIST_STRIP= -p1 |
111 | CONFIGURE_ARGS+= --enable-compressed | | 119 | CONFIGURE_ARGS+= --enable-compressed |
112 | SUBST_CLASSES+= compress | | 120 | SUBST_CLASSES+= compress |