# New ports collection makefile for:	procmail
# Date created:		24 September 1994
# Whom:			adam
#
# $FreeBSD: ports/mail/procmail/Makefile,v 1.39 2001/06/30 08:00:58 ache Exp $
#

PORTNAME=	procmail
PORTVERSION=    3.21
CATEGORIES=	mail
MASTER_SITES=	ftp://ftp.procmail.org/pub/procmail/ \
		ftp://ftp.informatik.rwth-aachen.de/pub/packages/procmail/

MAINTAINER=	ache@FreeBSD.org

INSTALL_TARGET=	install-suid install.man

# It asks for list of directories to do test for file locking
# (defaults to /tmp and ".", so return should suffice in most cases).
.if !defined(PACKAGE_BUILDING) # handled in patch-aa
IS_INTERACTIVE=	yes
.endif
MAN1=		procmail.1 formail.1 lockfile.1
MAN5=		procmailex.5 procmailrc.5 procmailsc.5

.include <bsd.port.pre.mk>

post-configure:
	@${PERL} -pi -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/config.h

.include <bsd.port.post.mk>
