1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/mail/mboxstats/Makefile
Cheng-Lung Sung 26b6fd675b - Update to 3.0
- buildable (and works) on amd64 [1]
Added file(s):
- files/patch-br.cpp: Workaround use of strndup

PR:		ports/113857
Submitted by:	Nils Vogels <nivo+kw+ports dot bfa274_AT_is-root dot com>
Reviewed by:	clsung [1]
2007-07-02 07:54:40 +00:00

34 lines
910 B
Makefile

# ex:ts=8
# New ports collection makefile for: mboxstats
# Date created: Oct 31 2003
# Whom: clsung
#
# $FreeBSD$
#
PORTNAME= mboxstats
PORTVERSION= 3.0
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
.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}
@${REINPLACE_CMD} -Ee 's,(stat|open)64,\1,g' ${WRKSRC}/main.cpp
@${REINPLACE_CMD} -Ee 's,(stat|mmap|lseek|off)64,\1,g' ${WRKSRC}/br.h ${WRKSRC}/br.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mboxstats ${TARGETDIR}/bin
.include <bsd.port.post.mk>