summaryrefslogtreecommitdiff
path: root/mail/dovecot
diff options
context:
space:
mode:
Diffstat (limited to 'mail/dovecot')
-rw-r--r--mail/dovecot/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/mail/dovecot/Makefile b/mail/dovecot/Makefile
index 0379f598643f..4b96bf4c4506 100644
--- a/mail/dovecot/Makefile
+++ b/mail/dovecot/Makefile
@@ -23,6 +23,14 @@ LIB_DEPENDS= libzstd.so:archivers/zstd
USES= cpe iconv libtool pkgconfig ssl
USE_RC_SUBR= dovecot
+FLAVORS= default cdb ldap mysql pgsql sqlite3
+FLAVOR?= ${FLAVORS:[1]}
+cdb_PKGNAMESUFFIX= -cdb
+ldap_PKGNAMESUFFIX= -ldap
+mysql_PKGNAMESUFFIX= -mysql
+pgsql_PKGNAMESUFFIX= -pgsql
+sqlite3_PKGNAMESUFFIX= -sqlite3
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var \
--with-docs \
@@ -48,6 +56,22 @@ OPTIONS_GROUP_FTS= ICU LUCENE SOLR TEXTCAT
OPTIONS_SINGLE= GSSAPI
OPTIONS_SINGLE_GSSAPI= GSSAPI_NONE GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT
+.if ${FLAVOR} == cdb
+OPTIONS_DEFAULT+= CDB
+.endif
+.if ${FLAVOR} == ldap
+OPTIONS_DEFAULT+= LDAP
+.endif
+.if ${FLAVOR} == mysql
+OPTIONS_DEFAULT+= MYSQL
+.endif
+.if ${FLAVOR} == pgsql
+OPTIONS_DEFAULT+= PGSQL
+.endif
+.if ${FLAVOR} == sqlite3
+OPTIONS_DEFAULT+= SQLITE3
+.endif
+
DB_DESC= Database support
CDB_DESC= CDB database support