aboutsummaryrefslogtreecommitdiff
path: root/mail/textmail/Makefile
blob: 6abe3acf18aea9a18be14387e23110ba5537acaf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>

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

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

RUN_DEPENDS=	antiword:textproc/antiword \
		catdoc:textproc/catdoc \
		xls2csv:textproc/catdoc \
		lynx:www/lynx \
		pdftotext:graphics/poppler-utils

USES=		perl5 shebangfix
SHEBANG_FILES=	${PORTNAME}
PLIST_FILES=	bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
NO_WRKSUBDIR=	yes

post-patch:
	@${REINPLACE_CMD} -e '3s|^|\${.newline}$$ENV{'PATH'} = "${LOCALBASE}/libexec/xpdf:$$ENV{'PATH'}";\${.newline}|' ${WRKSRC}/${PORTNAME}

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

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

.include <bsd.port.mk>