diff --git a/mail/cyrus-imapd2/Makefile b/mail/cyrus-imapd2/Makefile index 184755eb3501..f4f6e9e0b3cb 100644 --- a/mail/cyrus-imapd2/Makefile +++ b/mail/cyrus-imapd2/Makefile @@ -79,6 +79,10 @@ PLIST_SUB+= MURDER="@comment " .include +.if ${PERL_LEVEL} >= 501400 +IGNORE= does not build with Perl 5.14+, use mail/cyrus-imapd23 instead +.endif + CYRUS_USER?= cyrus CYRUS_GROUP?= cyrus diff --git a/mail/cyrus-imapd22/Makefile b/mail/cyrus-imapd22/Makefile index bb3662422e16..0c75c6331550 100644 --- a/mail/cyrus-imapd22/Makefile +++ b/mail/cyrus-imapd22/Makefile @@ -56,6 +56,10 @@ PASS8BITHACK_DESC= Add pass8bit option (not recommended) .include +.if ${PERL_LEVEL} >= 501400 +IGNORE= does not build with Perl 5.14+, use mail/cyrus-imapd23 instead +.endif + .if ${PORT_OPTIONS:MNNTP} CONFIGURE_ARGS+=--enable-nntp PLIST_SUB+= NNTP=""