diff options
-rw-r--r-- | mail/imapfilter/Makefile | 18 | ||||
-rw-r--r-- | mail/imapfilter/distinfo | 6 |
2 files changed, 18 insertions, 6 deletions
diff --git a/mail/imapfilter/Makefile b/mail/imapfilter/Makefile index 41b1d2569d56..b9801388912f 100644 --- a/mail/imapfilter/Makefile +++ b/mail/imapfilter/Makefile @@ -6,7 +6,7 @@ # PORTNAME= imapfilter -PORTVERSION= 1.2.2 +PORTVERSION= 1.3 CATEGORIES= mail MASTER_SITES= http://imapfilter.hellug.gr/source/ @@ -25,12 +25,24 @@ MAN1= imapfilter.1 MAN5= imapfilter_config.5 PORTDOCS= LICENSE NEWS README PLIST_FILES= bin/imapfilter \ - %%DATADIR%%/interface.lua \ %%DATADIR%%/auxiliary.lua \ + %%DATADIR%%/interface.lua \ %%EXAMPLESDIR%%/sample.config.lua \ %%EXAMPLESDIR%%/sample.extend.lua PLIST_DIRS= %%DATADIR%% %%EXAMPLESDIR%% +OPTIONS= PCRE "Enable Perl Compatible Regular Expressions support" on + +.include <bsd.port.pre.mk> + +.if defined(WITHOUT_PCRE) +CONFIGURE_ARGS+= -o pcre=no +.else +LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre +CONFIGURE_ARGS+= -o pcre=yes +PLIST_FILES+= %%DATADIR%%/regex.lua +.endif + post-patch: @${REINPLACE_CMD} -Ee \ 's|^(incdirs=).*|\1"${CPPFLAGS}"| ; \ @@ -51,4 +63,4 @@ post-install: cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/mail/imapfilter/distinfo b/mail/imapfilter/distinfo index aea6431821b0..c4a58b7da7cd 100644 --- a/mail/imapfilter/distinfo +++ b/mail/imapfilter/distinfo @@ -1,3 +1,3 @@ -MD5 (imapfilter-1.2.2.tar.bz2) = cb2329943edcac1f839acd320f906e13 -SHA256 (imapfilter-1.2.2.tar.bz2) = a656477e5c9031becdc683da5d159c7c8536ea446ba4779ea43c4edba59fe7e8 -SIZE (imapfilter-1.2.2.tar.bz2) = 32625 +MD5 (imapfilter-1.3.tar.bz2) = 0894273fc67008325002b360520d922e +SHA256 (imapfilter-1.3.tar.bz2) = f2559fe4cc40147bc12f6d1ddb44e99aa366c1c44829b3f3051532664e39e759 +SIZE (imapfilter-1.3.tar.bz2) = 34174 |