diff options
-rw-r--r-- | mail/mboxstats/Makefile | 11 | ||||
-rw-r--r-- | mail/mboxstats/distinfo | 4 |
2 files changed, 11 insertions, 4 deletions
diff --git a/mail/mboxstats/Makefile b/mail/mboxstats/Makefile index 1c42ca2362bf..91188cbe621a 100644 --- a/mail/mboxstats/Makefile +++ b/mail/mboxstats/Makefile @@ -7,7 +7,7 @@ # PORTNAME= mboxstats -PORTVERSION= 1.3 +PORTVERSION= 2.2 CATEGORIES= mail MASTER_SITES= http://vanheusden.com/mboxstats/ EXTRACT_SUFX= .tgz @@ -18,11 +18,18 @@ COMMENT= Creates top-10 lists of the messages in a mailbox PLIST_FILES= bin/mboxstats USE_REINPLACE= yes +.include <bsd.port.pre.mk> + post-patch: @${REINPLACE_CMD} -e 's|ssize_t|size_t|g' ${WRKSRC}/io.h @${REINPLACE_CMD} -e 's|PATH_MAX|FILENAME_MAX|g' ${WRKSRC}/main.cpp + @${REINPLACE_CMD} -e 's|^CC=|CC?=|g' ${WRKSRC}/${MAKEFILE} + @${REINPLACE_CMD} -e 's|^CPPFLAGS|CXXFLAGS|g' ${WRKSRC}/${MAKEFILE} +.if ${ARCH} == "i386" || ${ARCH} == "alpha" + @${REINPLACE_CMD} -Ee 's,(stat|open)64,\1,g' ${WRKSRC}/main.cpp +.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/mboxstats ${PREFIX}/bin -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/mail/mboxstats/distinfo b/mail/mboxstats/distinfo index 7c6fb95c64f6..6d82cb73fd2d 100644 --- a/mail/mboxstats/distinfo +++ b/mail/mboxstats/distinfo @@ -1,2 +1,2 @@ -MD5 (mboxstats-1.3.tgz) = 14e4b1cba0b778dff00db8eb10b9291c -SIZE (mboxstats-1.3.tgz) = 11803 +MD5 (mboxstats-2.2.tgz) = 2a63390f17747c6930f9f4d931a7225c +SIZE (mboxstats-2.2.tgz) = 15012 |