1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/mail/mboxstats/Makefile
Cheng-Lung Sung 7ece5fc02a - update to 2.4 to chase distfiles
- from ChnageLog
  - Added more new statistics: bussiest day in the whole period, fixed average
    line length fixed layout of timestamp, how many msgs were a reply, average
    response time, list of urls, number of pgp signed messages
- only for i386/alpha (4.x) , 'cos I don't have ia64/sparc... machines.
  but it's should be ok when appling the same post-patch.
2005-03-01 08:52:14 +00:00

37 lines
916 B
Makefile

# ex:ts=8
# New ports collection makefile for: mboxstats
# Date created: Oct 31 2003
# Whom: clsung
#
# $FreeBSD$
#
PORTNAME= mboxstats
PORTVERSION= 2.4
CATEGORIES= mail
MASTER_SITES= http://vanheusden.com/mboxstats/
EXTRACT_SUFX= .tgz
MAINTAINER= clsung@FreeBSD.org
COMMENT= Creates top-10 lists of the messages in a mailbox
PLIST_FILES= bin/mboxstats
USE_REINPLACE= yes
ONLY_FOR_ARCHS= i386 alpha
.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.post.mk>