aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2021-05-13 12:09:57 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2021-05-13 12:16:00 +0000
commitd859c1e769c730c23cff0920626d223b0a034c30 (patch)
treed5750d35eb514556ee2f6cfd49d5b8734d3a68c0
parent32b24117b109ab19b29948afebd9d80a6c013ce5 (diff)
downloadports-d859c1e769c730c23cff0920626d223b0a034c30.tar.gz
ports-d859c1e769c730c23cff0920626d223b0a034c30.zip
Add FLAVOR for enable HTTP.
Requested by: Adam Mokhtari <adam@mokhtari.io>
-rw-r--r--mail/cyrus-imapd34/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/mail/cyrus-imapd34/Makefile b/mail/cyrus-imapd34/Makefile
index 0023e946fe10..bc2500757493 100644
--- a/mail/cyrus-imapd34/Makefile
+++ b/mail/cyrus-imapd34/Makefile
@@ -3,16 +3,22 @@ PORTVERSION= 3.4.1
PORTREVISION= 0
CATEGORIES= mail
MASTER_SITES= https://github.com/cyrusimap/cyrus-imapd/releases/download/${PORTNAME}-${PORTVERSION}/
-PKGNAMESUFFIX= 34
+PKGNAMESUFFIX= ${CYRUS_IMAPD_VER}
MAINTAINER= ume@FreeBSD.org
-COMMENT= Cyrus mail server, supporting POP3 and IMAP4 protocols
+COMMENT= Cyrus mail server, supporting POP3 and IMAP4 protocols ${COMMENT_${FLAVOR}}
+COMMENT_http= (with HTTP)
LICENSE= BSD4CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_riscv64= fails to build: lib/chartable.c: Error 1
+FLAVORS= basic http
+http_PKGNAMESUFFIX= ${CYRUS_IMAPD_VER}-http
+
+CYRUS_IMAPD_VER= 34
+
LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 \
libicuuc.so:devel/icu \
libjansson.so:devel/jansson \
@@ -49,6 +55,9 @@ OPTIONS_DEFINE= AUTOCREATE BACKUP CLAMAV HTTP IDLED LDAP MURDER \
MYSQL NNTP PGSQL REPLICATION SQLITE SQUAT SRS \
XAPIAN DOCS
OPTIONS_DEFAULT= AUTOCREATE IDLED SQLITE SQUAT SRS
+.if ${FLAVOR:U} == http
+OPTIONS_DEFAULT+= HTTP
+.endif
OPTIONS_SUB= yes
AUTOCREATE_DESC= Enable autocreate support
AUTOCREATE_CONFIGURE_ENABLE= autocreate