71 lines
1.5 KiB
Makefile
71 lines
1.5 KiB
Makefile
# $NetBSD: options.mk,v 1.7 2006/01/23 14:40:52 tvierling Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.dovecot
|
|
PKG_SUPPORTED_OPTIONS= gnutls inet6 ldap mysql pam pgsql sqlite ssl
|
|
PKG_SUGGESTED_OPTIONS= ssl
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
###
|
|
### Build with GNU TLS or OpenSSL as the underlying crypto library.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mssl)
|
|
CONFIGURE_ARGS+= --with-ssl=openssl
|
|
. include "../../security/openssl/buildlink3.mk"
|
|
.elif !empty(PKG_OPTIONS:Mgnutls)
|
|
CONFIGURE_ARGS+= --with-ssl=gnutls
|
|
. include "../../security/gnutls/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --without-ssl
|
|
.endif
|
|
|
|
###
|
|
### MySQL support.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mmysql)
|
|
CONFIGURE_ARGS+= --with-mysql
|
|
. include "../../mk/mysql.buildlink3.mk"
|
|
.endif
|
|
|
|
###
|
|
### PostgreSQL support.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mpgsql)
|
|
CONFIGURE_ARGS+= --with-pgsql
|
|
CPPFLAGS+= -I${BUILDLINK_DIR}/include/pgsql
|
|
. include "../../mk/pgsql.buildlink3.mk"
|
|
.endif
|
|
|
|
###
|
|
### SQLite 3 support.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Msqlite)
|
|
CONFIGURE_ARGS+= --with-sqlite
|
|
. include "../../databases/sqlite3/buildlink3.mk"
|
|
.endif
|
|
|
|
###
|
|
### IPv6 support.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
.endif
|
|
|
|
###
|
|
### LDAP directory support.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mldap)
|
|
CONFIGURE_ARGS+= --with-ldap
|
|
. include "../../databases/openldap/buildlink3.mk"
|
|
.endif
|
|
|
|
###
|
|
### PAM support
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mpam)
|
|
CONFIGURE_ARGS+= --with-pam
|
|
.else
|
|
CONFIGURE_ARGS+= --without-pam
|
|
.endif
|