pkgsrc/mail/mutt/options.mk
tron e05de6287e Improve handling of options related to the terminal library used by this
package and add support for "ncursesw".

Patch supplied by Ben Collver pkg/34777.
2006-10-14 20:34:36 +00:00

63 lines
1.4 KiB
Makefile

# $NetBSD: options.mk,v 1.11 2006/10/14 20:34:36 tron Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.mutt
PKG_OPTIONS_REQUIRED_GROUPS= display
PKG_OPTIONS_GROUP.display= slang ncurses ncursesw curses
PKG_SUPPORTED_OPTIONS= ssl buffy-size
PKG_SUGGESTED_OPTIONS= ssl curses
.include "../../mk/bsd.options.mk"
###
### Slang
###
.if !empty(PKG_OPTIONS:Mslang)
. include "../../devel/libslang/buildlink3.mk"
CONFIGURE_ARGS+= --with-slang=${BUILDLINK_PREFIX.libslang}
.endif
###
### ncurses
###
.if !empty(PKG_OPTIONS:Mncurses)
USE_NCURSES= yes
. include "../../devel/ncurses/buildlink3.mk"
CONFIGURE_ARGS+= --with-curses=${BUILDLINK_PREFIX.ncurses}
.endif
###
### curses
###
.if !empty(PKG_OPTIONS:Mcurses)
. include "../../mk/curses.buildlink3.mk"
.endif
###
### ncursesw
###
.if !empty(PKG_OPTIONS:Mncursesw)
. include "../../devel/ncursesw/buildlink3.mk"
.else
SUBST_CLASSES+= curse
SUBST_MESSAGE.curse= Fixing mutt to avoid ncursesw
SUBST_STAGE.curse= post-patch
SUBST_FILES.curse= configure.in configure
SUBST_SED.curse= -e 's,for lib in ncurses ncursesw,for lib in ncurses,'
.endif
###
### SSL
###
.if !empty(PKG_OPTIONS:Mssl)
. include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q}
.else
CONFIGURE_ARGS+= --without-ssl
.endif
###
### configure option --enable-buffy-size
###
.if !empty(PKG_OPTIONS:Mbuffy-size)
CONFIGURE_ARGS+= --enable-buffy-size
.endif