Update mail/postfix-current to version 3.2.20161008,4
[dports.git] / mail / textmail / Makefile
1 # Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       textmail
5 PORTVERSION=    20070803
6 PORTREVISION=   6
7 CATEGORIES=     mail
8 MASTER_SITES=   http://raf.org/textmail/
9
10 MAINTAINER=     ports@FreeBSD.org
11 COMMENT=        Converts e-mail attachments to plain-text
12
13 RUN_DEPENDS=    antiword:textproc/antiword \
14                 catdoc:textproc/catdoc \
15                 xls2csv:textproc/catdoc \
16                 lynx:www/lynx \
17                 pdftotext:graphics/poppler-utils
18
19 USES=           perl5 shebangfix
20 SHEBANG_FILES=  ${PORTNAME}
21 PLIST_FILES=    bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
22 NO_WRKSUBDIR=   yes
23
24 post-patch:
25         @${REINPLACE_CMD} -e '3s|^|\${.newline}$$ENV{'PATH'} = "${LOCALBASE}/libexec/xpdf:$$ENV{'PATH'}";\${.newline}|' ${WRKSRC}/${PORTNAME}
26
27 do-build:
28         @cd ${WRKSRC}/&&pod2man ${PORTNAME}>${PORTNAME}.1
29
30 do-install:
31         ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
32         ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
33
34 .include <bsd.port.mk>