# New ports collection Makefile for:    exmh
# Version required:		1.6.9
# Date created:			10 Oct 96
# Whom:				Peter Wemm <peter@freebsd.org>
#
# $FreeBSD: ports/mail/exmh/Makefile,v 1.18 1999/11/28 18:30:57 steve Exp $
#

DISTNAME=	exmh-1.6.9
CATEGORIES=	mail tk82
MASTER_SITES=	ftp://ftp.scriptics.com/pub/tcl/exmh/
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	peter@FreeBSD.org

BUILD_DEPENDS=	tclsh8.2:${PORTSDIR}/lang/tcl82
RUN_DEPENDS=	wish8.2:${PORTSDIR}/x11-toolkits/tk82
WISH=		wish8.2
TCLSH=		tclsh8.2

# exmh is pretty useless without this, but it's not needed to build it.
RUN_DEPENDS+=	repl:${PORTSDIR}/mail/mh

# full mime support needs mmencode/mmdecode from metamail
RUN_DEPENDS+=	mmencode:${PORTSDIR}/mail/metamail

# Additionally, exmh will use the following ports if present:
# lang/expect
# misc/glimpse
# security/pgp
# mail/faces
# audio/rplay

MAN1=		exmh-custom.1 exmh-ref.1 exmh-use.1 exmh.1

post-extract:
	@${RM} -rf ${WRKSRC}/lib/*.orig

do-build:
	@cd ${WRKSRC} && ${SETENV} PREFIX=${PREFIX} \
		WISH=${PREFIX}/bin/${WISH} WRKSRC=${WRKSRC} \
		FILESDIR=${FILESDIR} TCLSH=${TCLSH} ${SH} ${SCRIPTDIR}/build

do-install:
	@cd ${WRKSRC} && ${SETENV} PREFIX=${PREFIX} \
		WRKSRC=${WRKSRC} ${SH} ${SCRIPTDIR}/install

.include <bsd.port.mk>
