diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-06-13 05:55:02 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-06-13 05:55:02 +0000 |
commit | 7da39d11c2a4d3613e19a4dc6a562337ba1bfacd (patch) | |
tree | 06c1fcce4e4bd9e8bdce472e8eca4f4a467896ca /mail/websieve/Makefile | |
parent | c2894a8bc4d59836f188e71d0024673d696c7ec8 (diff) |
Convert to new options framework
Notes
Notes:
svn path=/head/; revision=299171
Diffstat (limited to 'mail/websieve/Makefile')
-rw-r--r-- | mail/websieve/Makefile | 23 |
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> |