aboutsummaryrefslogtreecommitdiffstats
path: root/mail/cyrus-imapd25
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2015-03-14 12:50:42 +0800
committerume <ume@FreeBSD.org>2015-03-14 12:50:42 +0800
commit34c53e929fe3dbd49b6b92a48c4b7c5c5ff1905b (patch)
tree1ab6678a59ddf8ea2a71112040c7fecabab6c40a /mail/cyrus-imapd25
parent2a6d6ce3695b9db19eb3f8b5fd6635dd5f70bf7e (diff)
downloadfreebsd-ports-gnome-34c53e929fe3dbd49b6b92a48c4b7c5c5ff1905b.tar.gz
freebsd-ports-gnome-34c53e929fe3dbd49b6b92a48c4b7c5c5ff1905b.tar.zst
freebsd-ports-gnome-34c53e929fe3dbd49b6b92a48c4b7c5c5ff1905b.zip
Make it buildable with HTTP option enabled.
Diffstat (limited to 'mail/cyrus-imapd25')
-rw-r--r--mail/cyrus-imapd25/Makefile18
-rw-r--r--mail/cyrus-imapd25/files/patch-tools__vzic__Makefile13
2 files changed, 21 insertions, 10 deletions
diff --git a/mail/cyrus-imapd25/Makefile b/mail/cyrus-imapd25/Makefile
index 9aea6f9f2d73..a41aeea0caed 100644
--- a/mail/cyrus-imapd25/Makefile
+++ b/mail/cyrus-imapd25/Makefile
@@ -39,10 +39,10 @@ CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+= -I${LOCALBASE}/include
MAKE_JOBS_UNSAFE= yes
-OPTIONS_DEFINE= AUTOCREATE BDB CLAMAV HTTP IDLED LDAP MURDER MYSQL \
+OPTIONS_DEFINE= AUTOCREATE BDB HTTP IDLED LDAP MURDER MYSQL \
NETSCAPEHACK NNTP PGSQL REPLICATION SNMP SQLITE DOCS \
EXAMPLES
-#OPTIONS_DEFINE+= DRAC
+#OPTIONS_DEFINE+= CLAMAV DRAC
OPTIONS_DEFAULT= BDB IDLED
OPTIONS_SUB= yes
AUTOCREATE_DESC= Enable autocreate support
@@ -51,17 +51,18 @@ BDB_USE= BDB=yes
BDB_CONFIGURE_ON= --with-bdb-incdir=${BDB_INCLUDE_DIR} \
--with-bdb-libdir=${LOCALBASE}/lib
CLAMAV_DESC= Use ClamAV
-CLAMAV_CONFIGURE_ON= --with-clamav=${LOCALBASE}
-CLAMAV_CONFIGURE_OFF= --with-clamav=no
+CLAMAV_CONFIGURE_WITH= clamav
CLAMAV_LIB_DEPENDS= libclamav.so:${PORTSDIR}/security/clamav
DRAC_DESC= Enable DRAC support
DRAC_CONFIGURE_ON= --with-drac=${LOCALBASE}
DRAC_BUILD_DEPENDS= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
-HTTP_DESC= Enable HTTP
+# XXX: Does not install vzic for now.
+# Only vzic depends upon glib.
+HTTP_DESC= Enable HTTP (beta quality)
HTTP_CONFIGURE_ENABLE= http
HTTP_LIB_DEPENDS= libjansson.so:${PORTSDIR}/devel/jansson \
libical.so:${PORTSDIR}/devel/libical
-HTTP_USE= GNOME=libxml2 SQLITE=yes
+HTTP_USE= GNOME=libxml2,glib20 SQLITE=yes
IDLED_DESC= Enable IMAP idled support
IDLED_CONFIGURE_ENABLE= idled
LDAP_DESC= Enable LDAP support (experimental)
@@ -100,10 +101,7 @@ BDB_LIB_NAME= no
.if ${PORT_OPTIONS:MCLAMAV}
IGNORE= CLAMAV is not available yet
.endif
-
-.if ${PORT_OPTIONS:MHTTP}
-IGNORE= HTTP is not available yet
-.endif
+PLIST_SUB+= CLAMAV="@comment "
.if ${PORT_OPTIONS:MDRAC}
IGNORE= DRAC is not available
diff --git a/mail/cyrus-imapd25/files/patch-tools__vzic__Makefile b/mail/cyrus-imapd25/files/patch-tools__vzic__Makefile
new file mode 100644
index 000000000000..4390430d6d31
--- /dev/null
+++ b/mail/cyrus-imapd25/files/patch-tools__vzic__Makefile
@@ -0,0 +1,13 @@
+Index: tools/vzic/Makefile
+diff -u tools/vzic/Makefile.orig tools/vzic/Makefile
+--- tools/vzic/Makefile.orig 2015-03-04 07:44:41.000000000 +0900
++++ tools/vzic/Makefile 2015-03-14 11:47:18.444560930 +0900
+@@ -57,6 +57,8 @@
+ test-vzic: test-vzic.o
+ $(CC) test-vzic.o $(LIBICAL_LDADD) -o test-vzic
+
++install: vzic
++
+ # Dependencies.
+ $(OBJECTS): vzic.h
+ vzic.o vzic-parse.o: vzic-parse.h