pkgsrc/mail/dovecot2/options.mk
2019-07-03 05:51:54 +00:00

53 lines
1.2 KiB
Makefile

# $NetBSD: options.mk,v 1.12 2019/07/03 05:51:54 triaxx Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.dovecot
PKG_SUPPORTED_OPTIONS= kqueue pam ssl tcpwrappers
PKG_SUGGESTED_OPTIONS= pam ssl tcpwrappers
.if defined(PKG_HAVE_KQUEUE)
PKG_SUGGESTED_OPTIONS+= kqueue
.endif
PLIST_VARS+= ssl tcpwrappers
.include "../../mk/bsd.options.mk"
###
### Build with OpenSSL as the underlying crypto library
###
.if !empty(PKG_OPTIONS:Mssl)
CONFIGURE_ARGS+= --with-ssl=openssl
CONFIGURE_ENV+= SSL_CFLAGS="-I${BUILDLINK_PREFIX.openssl}/include"
CONFIGURE_ENV+= SSL_LIBS="-lssl -lcrypto"
BUILDLINK_API_DEPENDS.openssl+=openssl>=0.9.8a
. include "../../security/openssl/buildlink3.mk"
PLIST.ssl= yes
.endif
###
### PAM support
###
.if !empty(PKG_OPTIONS:Mpam)
CONFIGURE_ARGS+= --with-pam
. include "../../mk/pam.buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-pam
.endif
###
### kqueue support
###
.if !empty(PKG_OPTIONS:Mkqueue)
CONFIGURE_ARGS+= --with-ioloop=kqueue
CONFIGURE_ARGS+= --with-notify=kqueue
.else
# use the defaults
.endif
###
### tcpwrappers support
###
.if !empty(PKG_OPTIONS:Mtcpwrappers)
CONFIGURE_ARGS+= --with-libwrap
. include "../../security/tcp_wrappers/buildlink3.mk"
PLIST.tcpwrappers= yes
.endif