2010-06-02 15:14:47 +02:00
|
|
|
# $NetBSD: options.mk,v 1.40 2010/06/02 13:15:48 adam Exp $
|
2004-07-22 00:37:10 +02:00
|
|
|
|
2004-07-30 23:05:41 +02:00
|
|
|
# Global and legacy options
|
2004-07-22 00:37:10 +02:00
|
|
|
|
2004-07-30 23:05:41 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.mutt
|
2006-10-18 21:46:35 +02:00
|
|
|
PKG_OPTIONS_REQUIRED_GROUPS= display
|
|
|
|
PKG_OPTIONS_GROUP.display= slang ncurses ncursesw curses
|
2007-11-08 22:56:00 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= debug gpgme idn ssl smime sasl
|
2009-01-26 23:35:02 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS+= mutt-hcache mutt-smtp
|
2008-05-25 16:30:42 +02:00
|
|
|
# Comment the following line out on updates.
|
2009-07-16 22:23:41 +02:00
|
|
|
#PKG_SUPPORTED_OPTIONS+= mutt-compressed-mbox
|
2009-04-12 10:25:43 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS+= mutt-sidebar
|
2009-01-26 23:35:02 +01:00
|
|
|
#PKG_SUPPORTED_OPTIONS+= mutt-xlabel
|
2007-03-04 18:22:45 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS= ssl smime curses
|
2004-08-22 21:32:51 +02:00
|
|
|
|
2004-07-30 23:05:41 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
2004-07-22 00:37:10 +02:00
|
|
|
|
|
|
|
###
|
2006-08-03 19:07:04 +02:00
|
|
|
### Slang
|
2004-07-22 00:37:10 +02:00
|
|
|
###
|
2004-07-30 23:05:41 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mslang)
|
2004-07-22 00:37:10 +02:00
|
|
|
. include "../../devel/libslang/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-slang=${BUILDLINK_PREFIX.libslang}
|
2006-08-03 19:07:04 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### ncurses
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mncurses)
|
2004-07-22 00:37:10 +02:00
|
|
|
USE_NCURSES= yes
|
|
|
|
. include "../../devel/ncurses/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-curses=${BUILDLINK_PREFIX.ncurses}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### SASLv2
|
|
|
|
###
|
2004-07-30 23:05:41 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Msasl)
|
2006-04-13 23:45:12 +02:00
|
|
|
. include "../../security/cyrus-sasl/buildlink3.mk"
|
2005-10-04 17:37:32 +02:00
|
|
|
CONFIGURE_ARGS+= --with-sasl=${BUILDLINK_PREFIX.cyrus-sasl}
|
2004-07-22 00:37:10 +02:00
|
|
|
.endif
|
|
|
|
|
2006-10-18 21:46:35 +02:00
|
|
|
### curses
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mcurses)
|
|
|
|
. include "../../mk/curses.buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### ncursesw
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mncursesw)
|
|
|
|
. include "../../devel/ncursesw/buildlink3.mk"
|
|
|
|
.else
|
2007-03-04 18:22:45 +01:00
|
|
|
SUBST_CLASSES+= curse
|
|
|
|
SUBST_MESSAGE.curse= Fixing mutt to avoid ncursesw
|
|
|
|
SUBST_STAGE.curse= post-patch
|
2007-04-21 20:27:21 +02:00
|
|
|
SUBST_FILES.curse= configure
|
2007-03-04 18:22:45 +01:00
|
|
|
SUBST_SED.curse= -e 's,for lib in ncurses ncursesw,for lib in ncurses,'
|
2006-10-18 21:46:35 +02:00
|
|
|
.endif
|
|
|
|
|
2004-07-22 00:37:10 +02:00
|
|
|
###
|
|
|
|
### SSL
|
|
|
|
###
|
2004-07-30 23:05:41 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mssl)
|
2004-07-22 00:37:10 +02:00
|
|
|
. include "../../security/openssl/buildlink3.mk"
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q}
|
2004-07-22 00:37:10 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ssl
|
|
|
|
.endif
|
2005-08-02 14:57:02 +02:00
|
|
|
|
2007-03-04 18:22:45 +01:00
|
|
|
###
|
|
|
|
### S/MIME
|
|
|
|
###
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= smime
|
2007-03-04 18:22:45 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Msmime)
|
|
|
|
USE_TOOLS+= perl:run
|
|
|
|
REPLACE_PERL+= *.pl */*.pl
|
|
|
|
. include "../../security/openssl/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-smime
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.smime= yes
|
2007-03-04 18:22:45 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-smime
|
|
|
|
.endif
|
|
|
|
|
2005-08-02 14:57:02 +02:00
|
|
|
###
|
|
|
|
### Header cache
|
|
|
|
###
|
2005-08-02 15:15:40 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mmutt-hcache)
|
2010-06-02 15:14:47 +02:00
|
|
|
BDB_ACCEPTED= db4 db5
|
|
|
|
BUILDLINK_TRANSFORM+= l:db:${BDB_TYPE}
|
|
|
|
. include "../../mk/bdb.buildlink3.mk"
|
2005-08-02 14:57:02 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-hcache
|
2005-09-03 05:21:23 +02:00
|
|
|
CONFIGURE_ARGS+= --without-gdbm
|
|
|
|
# BDB_INCLUDE_DIR_ and BDB_LIB_DIR don't have to be particularly accurate
|
|
|
|
# since the real -I and -L flags are added by buildlink already.
|
2010-06-02 15:14:47 +02:00
|
|
|
CONFIGURE_ENV+= BDB_INCLUDE_DIR=${BDBBASE}/include
|
|
|
|
CONFIGURE_ENV+= BDB_LIB_DIR=${BDBBASE}/lib
|
|
|
|
CONFIGURE_ENV+= BDB_LIB=${BDB_LIBS:S/^-l//:Q}
|
2005-08-02 14:57:02 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-hcache
|
|
|
|
.endif
|
2005-10-03 16:16:53 +02:00
|
|
|
|
2007-07-17 23:06:50 +02:00
|
|
|
###
|
|
|
|
### Compressed mail boxes
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mmutt-compressed-mbox)
|
2008-05-18 10:26:30 +02:00
|
|
|
PATCH_SITES= http://www.spinnaker.de/mutt/compressed/
|
|
|
|
PATCHFILES+= patch-${PKGVERSION_NOREV}.rr.compressed.1.gz
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
CONFIGURE_ARGS+= --enable-compressed
|
2007-07-17 23:06:50 +02:00
|
|
|
.endif
|
|
|
|
|
2006-06-12 20:50:29 +02:00
|
|
|
###
|
2007-04-21 20:27:21 +02:00
|
|
|
### Internal SMTP relay support
|
2006-06-12 20:50:29 +02:00
|
|
|
###
|
2007-04-21 20:27:21 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mmutt-smtp)
|
2007-05-27 19:39:47 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-smtp
|
2007-04-21 20:27:21 +02:00
|
|
|
.else
|
2007-05-27 19:39:47 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-smtp
|
2006-06-12 20:50:29 +02:00
|
|
|
.endif
|
|
|
|
|
2009-04-12 10:25:43 +02:00
|
|
|
###
|
|
|
|
### Sidebar support
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mmutt-sidebar)
|
|
|
|
PATCH_SITES= http://lunar-linux.org/~tchan/mutt/
|
2009-07-16 22:23:41 +02:00
|
|
|
PATCHFILES+= patch-1.5.20.sidebar.20090619.txt
|
2009-04-12 10:25:43 +02:00
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
PATCH_FUZZ_FACTOR= -F1
|
|
|
|
.endif
|
|
|
|
|
2008-04-26 13:11:15 +02:00
|
|
|
###
|
|
|
|
### X-Label header support
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mmutt-xlabel)
|
|
|
|
PATCH_SITES= http://home.uchicago.edu/~dgc/sw/mutt/
|
|
|
|
PATCHFILES+= patch-1.5.14.dgc.xlabel_ext.9
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
.endif
|
|
|
|
|
2005-10-03 16:16:53 +02:00
|
|
|
###
|
|
|
|
### Internationalized Domain Names
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Midn)
|
|
|
|
. include "../../devel/libidn/buildlink3.mk"
|
2007-03-04 18:22:45 +01:00
|
|
|
CONFIGURE_ARGS+= --with-idn=${BUILDLINK_PREFIX.libidn}
|
2005-10-03 16:16:53 +02:00
|
|
|
.else
|
2010-04-15 21:36:32 +02:00
|
|
|
CONFIGURE_ARGS+= --with-idn=no
|
2005-10-03 16:16:53 +02:00
|
|
|
.endif
|
2006-10-18 22:06:13 +02:00
|
|
|
|
|
|
|
###
|
|
|
|
### Enable debugging support
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
2007-04-21 20:27:21 +02:00
|
|
|
CFLAGS+= -g
|
2006-10-18 22:06:13 +02:00
|
|
|
.endif
|
2007-11-08 22:56:00 +01:00
|
|
|
|
|
|
|
###
|
|
|
|
### gpgme support
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mgpgme)
|
|
|
|
. include "../../security/gpgme/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-gpgme
|
|
|
|
CONFIGURE_ARGS+= --with-gpgme-prefix=${BUILDLINK_PREFIX.gpgme}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gpgme
|
|
|
|
.endif
|