aboutsummaryrefslogtreecommitdiff
path: root/mail/mboxstats
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2005-02-14 03:25:04 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2005-02-14 03:25:04 +0000
commitb59f852aa95fe62f1edfb421f9f2ecf1e949b608 (patch)
treea6b74fda6fb9e3239e70ce7a8752c36706e60216 /mail/mboxstats
parent669f60573593a975d5b639d414d87d8b7e22f2a9 (diff)
downloadports-b59f852aa95fe62f1edfb421f9f2ecf1e949b608.tar.gz
ports-b59f852aa95fe62f1edfb421f9f2ecf1e949b608.zip
Notes
Diffstat (limited to 'mail/mboxstats')
-rw-r--r--mail/mboxstats/Makefile11
-rw-r--r--mail/mboxstats/distinfo4
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