summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2002-04-03 23:10:41 +0000
committerhubertf <hubertf@pkgsrc.org>2002-04-03 23:10:41 +0000
commit8d467e829738be6d5d7e50fe2f30133ecf9b7ad4 (patch)
tree180aa87a8be3f89b24a433ed3b6e56686d1ef5ef /mail
parent3d7b75b8cbbda2bd1427a7835ae4deb20b9c14ed (diff)
downloadpkgsrc-8d467e829738be6d5d7e50fe2f30133ecf9b7ad4.tar.gz
Allow teapop to use mysql, when TEAPOP_WITH_MYSQL is defined.
Bump pkg revision. Contributed in private mail by Charlie Root <root@gornik.tgr.lubin.edu.pl>
Diffstat (limited to 'mail')
-rw-r--r--mail/teapop/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/mail/teapop/Makefile b/mail/teapop/Makefile
index 8768c0fab88..a1f290ca0dd 100644
--- a/mail/teapop/Makefile
+++ b/mail/teapop/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2001/12/02 06:56:42 jlam Exp $
+# $NetBSD: Makefile,v 1.7 2002/04/03 23:10:43 hubertf Exp $
DISTNAME= teapop-0.3.2
+PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.toontown.org/pub/teapop/ \
http://www.toontown.org/pub/teapop/
@@ -28,6 +29,12 @@ CONFIGURE_ARGS+=--disable-apop
CONFIGURE_ARGS+=--disable-vpop
.endif
+.if defined(TEAPOP_WITH_MYSQL)
+DEPENDS+= mysql-client>=3.23:../../databases/mysql-client
+CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
+LDFLAGS+= -L${LOCALBASE}/lib/mysql -Wl,-R${LOCALBASE}/lib/mysql
+.endif
+
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/etc/teapop.passwd ${EGDIR}