diff --git a/mail/courier-imap/Makefile b/mail/courier-imap/Makefile index fafb59a7b08f..2ee990860416 100644 --- a/mail/courier-imap/Makefile +++ b/mail/courier-imap/Makefile @@ -29,4 +29,15 @@ MLINKS= authlib.8 authpwd.8 \ makeuserdb.8 pw2userdb.8 \ makeuserdb.8 vchkpw2userdb.8 -.include +.include + +post-patch: + @perl -i -pe s'@^if test -w confmdtest1$$@if test -z 0@' \ + ${WRKSRC}/configure +.if ${OSVERSION} >= 400016 + @perl -i -pe 's@^#include\s*$$@@' \ + ${WRKSRC}/rfc1035/configure \ + ${WRKSRC}/rfc1035/rfc1035.h.in +.endif + +.include