aboutsummaryrefslogtreecommitdiff
path: root/mail/mboxstats/Makefile
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/Makefile
parent669f60573593a975d5b639d414d87d8b7e22f2a9 (diff)
downloadports-b59f852aa95fe62f1edfb421f9f2ecf1e949b608.tar.gz
ports-b59f852aa95fe62f1edfb421f9f2ecf1e949b608.zip
Notes
Diffstat (limited to 'mail/mboxstats/Makefile')
-rw-r--r--mail/mboxstats/Makefile11
1 files changed, 9 insertions, 2 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>