f81ae835ad
user settable variable. Set PKG_SUGGESTED_OPTIONS instead. Also, make use of PKG_OPTIONS_LEGACY_VARS. Reviewed by wiz.
41 lines
934 B
Makefile
41 lines
934 B
Makefile
# $NetBSD: options.mk,v 1.5 2005/05/31 10:01:38 dillo Exp $
|
|
|
|
# Global and legacy options
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.mutt
|
|
PKG_SUPPORTED_OPTIONS= slang ncurses ssl sasl
|
|
PKG_SUGGESTED_OPTIONS= ssl
|
|
|
|
.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
|