2006-10-14 22:34:36 +02:00
|
|
|
# $NetBSD: options.mk,v 1.11 2006/10/14 20:34:36 tron Exp $
|
2004-08-05 09:19:25 +02:00
|
|
|
|
2006-08-03 19:07:04 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.mutt
|
2006-10-14 22:34:36 +02:00
|
|
|
PKG_OPTIONS_REQUIRED_GROUPS= display
|
|
|
|
PKG_OPTIONS_GROUP.display= slang ncurses ncursesw curses
|
2006-08-03 19:07:04 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= ssl buffy-size
|
2006-10-14 22:34:36 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= ssl curses
|
2004-08-22 21:32:51 +02:00
|
|
|
|
2004-08-05 09:19:25 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
###
|
2006-08-03 19:07:04 +02:00
|
|
|
### Slang
|
2004-08-05 09:19:25 +02:00
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mslang)
|
|
|
|
. 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-08-05 09:19:25 +02:00
|
|
|
USE_NCURSES= yes
|
|
|
|
. include "../../devel/ncurses/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-curses=${BUILDLINK_PREFIX.ncurses}
|
|
|
|
.endif
|
|
|
|
|
2006-10-14 22:34:36 +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
|
|
|
|
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
|
|
|
|
|
2004-08-05 09:19:25 +02:00
|
|
|
###
|
|
|
|
### SSL
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mssl)
|
|
|
|
. include "../../security/openssl/buildlink3.mk"
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q}
|
2004-08-05 09:19:25 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ssl
|
|
|
|
.endif
|
2005-01-01 23:05:26 +01:00
|
|
|
|
|
|
|
###
|
|
|
|
### configure option --enable-buffy-size
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mbuffy-size)
|
|
|
|
CONFIGURE_ARGS+= --enable-buffy-size
|
|
|
|
.endif
|