# New ports collection makefile for:	teapop
# Date created:			18 May 2000
# Whom:				Jim Mock <jim@FreeBSD.org>
#
# $FreeBSD: ports/mail/teapop/Makefile,v 1.3 2000/08/26 16:34:17 andreas Exp $
#

PORTNAME=	teapop
PORTVERSION= 	0.26
CATEGORIES=	mail
MASTER_SITES=	ftp://ftp.toontown.org/pub/teapop/ \
		http://www.toontown.org/pub/teapop/
DISTNAME=	${PORTNAME}-latest

MAINTAINER=	jim@FreeBSD.org

.if defined(WITH_PGSQL)
LIB_DEPENDS=	pq.2:${PORTSDIR}/databases/postgresql7
.endif

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=		--enable-flock

.if defined(WITHOUT_APOP)
CONFIGURE_ARGS+=	--disable-apop
.endif

.if defined(WITHOUT_VPOP)
CONFIGURE_ARGS+=	--disable-vpop
.endif

.if defined(WITH_PGSQL)
CONFIGURE_ARGS+=	--with-pgsql=${PREFIX}/pgsql
.endif

MAN8=		teapop.8

.include <bsd.port.mk>
