pkgsrc/mail/mutt-devel/options.mk
jlam 9d5426ff76 Change the way that legacy USE_* and FOO_USE_* options are converted
into the bsd.options.mk framework.  Instead of appending to
${PKG_OPTIONS_VAR}, it appends to PKG_DEFAULT_OPTIONS.  This causes
the default options to be the union of PKG_DEFAULT_OPTIONS and any
old USE_* and FOO_USE_* settings.

This fixes PR pkg/26590.
2004-08-22 19:32:51 +00:00

56 lines
1.3 KiB
Makefile

# $NetBSD: options.mk,v 1.3 2004/08/22 19:32:51 jlam Exp $
# Global and legacy options
.if defined(MUTT_USE_SLANG) && !empty(MUTT_USE_SLANG:M[yY][eE][sS])
PKG_DEFAULT_OPTIONS+= slang
.endif
.if defined(MUTT_USE_NCURSES) && !empty(MUTT_USE_NCURSES:M[yY][eE][sS])
PKG_DEFAULT_OPTIONS+= ncurses
.endif
.if defined(MUTT_USE_SSL) && !empty(MUTT_USE_SSL:M[yY][eE][sS])
PKG_DEFAULT_OPTIONS+= ssl
.endif
.if defined(MUTT_USE_SASL) && !empty(MUTT_USE_SASL:M[yY][eE][sS])
PKG_DEFAULT_OPTIONS+= sasl
.endif
PKG_OPTIONS_VAR= PKG_OPTIONS.mutt
PKG_SUPPORTED_OPTIONS= slang ncurses ssl sasl
.if !defined(PKG_OPTIONS.mutt)
PKG_DEFAULT_OPTIONS+= ssl
.endif
.include "../../mk/bsd.options.mk"
###
### Slang and ncurses
###
.if !empty(PKG_OPTIONS:Mslang)
. include "../../devel/libslang/buildlink3.mk"
CONFIGURE_ARGS+= --with-slang=${BUILDLINK_PREFIX.libslang}
.else
. if !empty(PKG_OPTIONS:Mncurses)
USE_NCURSES= yes
. endif
. include "../../devel/ncurses/buildlink3.mk"
CONFIGURE_ARGS+= --with-curses=${BUILDLINK_PREFIX.ncurses}
.endif
###
### SASLv2
###
.if !empty(PKG_OPTIONS:Msasl)
. include "../../security/cyrus-sasl2/buildlink3.mk"
CONFIGURE_ARGS+= --with-sasl2=${BUILDLINK_PREFIX.cyrus-sasl}
.endif
###
### SSL
###
.if !empty(PKG_OPTIONS:Mssl)
. include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --with-ssl=${SSLBASE}
.else
CONFIGURE_ARGS+= --without-ssl
.endif