aboutsummaryrefslogtreecommitdiffstats
path: root/mail/websieve
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-06-13 13:55:02 +0800
committerbapt <bapt@FreeBSD.org>2012-06-13 13:55:02 +0800
commit818ed17bddcf2339d4165dbf978b07adf9ca9678 (patch)
tree9290ad281aeea9dc740177140c2842fb9f3789ca /mail/websieve
parentaaf14a1e63df682f8359db1ef5b7efbd954e91df (diff)
downloadfreebsd-ports-gnome-818ed17bddcf2339d4165dbf978b07adf9ca9678.tar.gz
freebsd-ports-gnome-818ed17bddcf2339d4165dbf978b07adf9ca9678.tar.zst
freebsd-ports-gnome-818ed17bddcf2339d4165dbf978b07adf9ca9678.zip
Convert to new options framework
Diffstat (limited to 'mail/websieve')
-rw-r--r--mail/websieve/Makefile23
1 files changed, 13 insertions, 10 deletions
diff --git a/mail/websieve/Makefile b/mail/websieve/Makefile
index 3ebb9d999390..b756bbe3785d 100644
--- a/mail/websieve/Makefile
+++ b/mail/websieve/Makefile
@@ -24,25 +24,28 @@ NO_BUILD= yes
# highest select version number. If no Cyrus IMAPd versions are
# selected, use some generic IMAP modules
-OPTIONS= CYRUS_IMAPD_21 "With Cyrus IMAPd version 2.1.x" off \
- CYRUS_IMAPD_22 "With Cyrus IMAPd version 2.2.x" off \
- CYRUS_IMAPD_23 "With Cyrus IMAPd version 2.3.x" on \
- CYRUS_IMAPD_24 "With Cyrus IMAPd version 2.4.x" off
+OPTIONS_DEFINE= CYRUS_IMAPD_21 CYRUS_IMAPD_22 CYRUS_IMAPD_23 CYRUS_IMAPD_24
+OPTIONS_DEFAULT= CYRUS_IMAPD_23
-.include <bsd.port.pre.mk>
+CYRUS_IMAPD_21_DESC= With Cyrus IMAPd version 2.1.x
+CYRUS_IMAPD_22_DESC= With Cyrus IMAPd version 2.2.x
+CYRUS_IMAPD_23_DESC= With Cyrus IMAPd version 2.3.x
+CYRUS_IMAPD_24_DESC= With Cyrus IMAPd version 2.4.x
+
+.include <bsd.port.options.mk>
CYRUS_IMAP_PM= ${SITE_PERL}/${PERL_ARCH}/Cyrus/IMAP/Admin.pm
-.if defined(WITH_CYRUS_IMAPD_24)
+.if ${PORT_OPTIONS:MCYRUS_IMAPD_24}
RUN_DEPENDS+= ${CYRUS_IMAP_PM}:${PORTSDIR}/mail/cyrus-imapd24
FUNCLIB_PL= funclib.cyrus
-.elif defined(WITH_CYRUS_IMAPD_23)
+.elif ${PORT_OPTIONS:MCYRUS_IMAPD_23}
RUN_DEPENDS+= ${CYRUS_IMAP_PM}:${PORTSDIR}/mail/cyrus-imapd23
FUNCLIB_PL= funclib.cyrus
-.elif defined(WITH_CYRUS_IMAPD_22)
+.elif ${PORT_OPTIONS:MCYRUS_IMAPD_22}
RUN_DEPENDS+= ${CYRUS_IMAP_PM}:${PORTSDIR}/mail/cyrus-imapd22
FUNCLIB_PL= funclib.cyrus
-.elif defined(WITH_CYRUS_IMAPD_21)
+.elif ${PORT_OPTIONS:MCYRUS_IMAPD_21}
RUN_DEPENDS+= ${CYRUS_IMAP_PM}:${PORTSDIR}/mail/cyrus-imapd2
FUNCLIB_PL= funclib.cyrus
.else
@@ -67,4 +70,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>