2005-08-19 06:57:01 +02:00
|
|
|
# $NetBSD: options.mk,v 1.7 2005/08/19 04:57:01 grant Exp $
|
2004-08-01 09:04:45 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.dovecot
|
2005-08-19 06:57:01 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= gnutls inet6 ldap mysql pgsql sasl pam
|
2004-08-01 09:04:45 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2004-08-05 04:22:19 +02:00
|
|
|
###
|
|
|
|
### Build with GNU TLS or OpenSSL as the underlying crypto library.
|
|
|
|
###
|
2004-08-01 09:04:45 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mgnutls)
|
2005-01-08 20:58:16 +01:00
|
|
|
PKG_FAIL_REASON+= "GNU TLS support is currently broken."
|
2004-08-01 09:04:45 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-ssl=gnutls
|
|
|
|
. include "../../security/gnutls/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-ssl=openssl
|
|
|
|
. include "../../security/openssl/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2004-08-05 04:22:19 +02:00
|
|
|
###
|
|
|
|
### MySQL support.
|
|
|
|
###
|
2004-08-01 09:04:45 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mmysql)
|
|
|
|
CONFIGURE_ARGS+= --with-mysql
|
|
|
|
. include "../../databases/mysql4-client/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2004-08-05 04:22:19 +02:00
|
|
|
###
|
|
|
|
### PostgreSQL support.
|
|
|
|
###
|
2004-08-01 09:04:45 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mpgsql)
|
|
|
|
CONFIGURE_ARGS+= --with-pgsql
|
|
|
|
CPPFLAGS+= -I${BUILDLINK_DIR}/include/pgsql
|
|
|
|
. include "../../mk/pgsql.buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2004-08-05 04:22:19 +02:00
|
|
|
###
|
|
|
|
### IPv6 support.
|
|
|
|
###
|
2004-08-01 09:04:45 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2004-08-05 04:22:19 +02:00
|
|
|
###
|
|
|
|
### LDAP directory support.
|
|
|
|
###
|
2004-08-01 09:04:45 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mldap)
|
|
|
|
CONFIGURE_ARGS+= --with-ldap
|
|
|
|
. include "../../databases/openldap/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2004-08-05 04:22:19 +02:00
|
|
|
###
|
|
|
|
### IMAP-AUTH via SASL.
|
|
|
|
###
|
2004-08-01 09:04:45 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Msasl)
|
|
|
|
CONFIGURE_ARGS+= --with-cyrus-sasl2
|
|
|
|
. include "../../security/cyrus-sasl2/buildlink3.mk"
|
|
|
|
.endif
|
2005-08-19 06:57:01 +02:00
|
|
|
|
|
|
|
###
|
|
|
|
### PAM support.
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mpam)
|
|
|
|
CONFIGURE_ARGS+= --with-pam
|
|
|
|
. include "../../mk/pam.buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-pam
|
|
|
|
.endif
|