Tue Aug 28 20:15:41 2012 UTC ()
Add an option to use tokyocabinet as backend for mutt header cache


(tonio)
diff -r1.42 -r1.43 pkgsrc/mail/mutt-devel/options.mk

cvs diff -r1.42 -r1.43 pkgsrc/mail/mutt-devel/Attic/options.mk (expand / switch to unified diff)

--- pkgsrc/mail/mutt-devel/Attic/options.mk 2010/12/20 14:03:39 1.42
+++ pkgsrc/mail/mutt-devel/Attic/options.mk 2012/08/28 20:15:41 1.43
@@ -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
5PKG_OPTIONS_VAR= PKG_OPTIONS.mutt 5PKG_OPTIONS_VAR= PKG_OPTIONS.mutt
6PKG_OPTIONS_REQUIRED_GROUPS= display 6PKG_OPTIONS_REQUIRED_GROUPS= display
7PKG_OPTIONS_GROUP.display= slang ncurses ncursesw curses 7PKG_OPTIONS_GROUP.display= slang ncurses ncursesw curses
8PKG_SUPPORTED_OPTIONS= debug gpgme idn ssl smime sasl 8PKG_SUPPORTED_OPTIONS= debug gpgme idn ssl smime sasl
9PKG_SUPPORTED_OPTIONS+= mutt-hcache mutt-smtp 9PKG_SUPPORTED_OPTIONS+= mutt-hcache tokyocabinet mutt-smtp
10# Comment the following line out on updates. 10# Comment the following line out on updates.
11PKG_SUPPORTED_OPTIONS+= mutt-compressed-mbox 11PKG_SUPPORTED_OPTIONS+= mutt-compressed-mbox
12PKG_SUPPORTED_OPTIONS+= mutt-sidebar 12PKG_SUPPORTED_OPTIONS+= mutt-sidebar
13#PKG_SUPPORTED_OPTIONS+= mutt-xlabel 13#PKG_SUPPORTED_OPTIONS+= mutt-xlabel
14PKG_SUGGESTED_OPTIONS= ssl smime curses 14PKG_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
77USE_TOOLS+= perl:run 77USE_TOOLS+= perl:run
78REPLACE_PERL+= *.pl */*.pl 78REPLACE_PERL+= *.pl */*.pl
79. include "../../security/openssl/buildlink3.mk" 79. include "../../security/openssl/buildlink3.mk"
80CONFIGURE_ARGS+= --enable-smime 80CONFIGURE_ARGS+= --enable-smime
81PLIST.smime= yes 81PLIST.smime= yes
82.else 82.else
83CONFIGURE_ARGS+= --disable-smime 83CONFIGURE_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"
 92CONFIGURE_ARGS+= --enable-hcache
 93CONFIGURE_ARGS+= --enable-tokyocabinet
 94CONFIGURE_ARGS+= --without-gdbm
 95CONFIGURE_ARGS+= --without-bdb
 96. else
90BDB_ACCEPTED= db4 db5 97BDB_ACCEPTED= db4 db5
91BUILDLINK_TRANSFORM+= l:db:${BDB_TYPE} 98BUILDLINK_TRANSFORM+= l:db:${BDB_TYPE}
92. include "../../mk/bdb.buildlink3.mk" 99. include "../../mk/bdb.buildlink3.mk"
93CONFIGURE_ARGS+= --enable-hcache 100CONFIGURE_ARGS+= --enable-hcache
94CONFIGURE_ARGS+= --without-gdbm 101CONFIGURE_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.
97CONFIGURE_ENV+= BDB_INCLUDE_DIR=${BDBBASE}/include 104CONFIGURE_ENV+= BDB_INCLUDE_DIR=${BDBBASE}/include
98CONFIGURE_ENV+= BDB_LIB_DIR=${BDBBASE}/lib 105CONFIGURE_ENV+= BDB_LIB_DIR=${BDBBASE}/lib
99CONFIGURE_ENV+= BDB_LIB=${BDB_LIBS:S/^-l//:M*:Q} 106CONFIGURE_ENV+= BDB_LIB=${BDB_LIBS:S/^-l//:M*:Q}
 107. endif
100.else 108.else
101CONFIGURE_ARGS+= --disable-hcache 109CONFIGURE_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)
108PATCH_SITES+= http://mutt.org.ua/download/${PKGNAME_NOREV}/ 116PATCH_SITES+= http://mutt.org.ua/download/${PKGNAME_NOREV}/
109PATCHFILES+= patch-${PKGVERSION_NOREV}.rr.compressed.gz 117PATCHFILES+= patch-${PKGVERSION_NOREV}.rr.compressed.gz
110PATCH_DIST_STRIP= -p1 118PATCH_DIST_STRIP= -p1
111CONFIGURE_ARGS+= --enable-compressed 119CONFIGURE_ARGS+= --enable-compressed
112SUBST_CLASSES+= compress 120SUBST_CLASSES+= compress