# New ports collection makefile for:	textmail
# Date created:		8 August 2007
# Whom:			Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD: ports/mail/textmail/Makefile,v 1.2 2007/08/08 07:15:24 sat Exp $
#

PORTNAME=	textmail
PORTVERSION=	20070803
CATEGORIES=	mail
MASTER_SITES=	http://raf.org/textmail/ CENKES

MAINTAINER=	infofarmer@FreeBSD.org
COMMENT=	Converts e-mail attachments to plain-text

RUN_DEPENDS=	antiword:${PORTSDIR}/textproc/antiword \
		catdoc:${PORTSDIR}/textproc/catdoc \
		xls2csv:${PORTSDIR}/textproc/catdoc \
		lynx:${PORTSDIR}/www/lynx \
		pdftotext:${PORTSDIR}/graphics/xpdf

USE_PERL5=	yes
PLIST_FILES=	bin/${PORTNAME}
NO_WRKSUBDIR=	yes
MAN1=	${PORTNAME}.1

do-build:
	@cd ${WRKSRC}/&&pod2man ${PORTNAME}>${PORTNAME}.1

do-install:
	@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
	@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/

.include <bsd.port.mk>


syntax highlighted by Code2HTML, v. 0.9.1