aboutsummaryrefslogtreecommitdiffstats
path: root/mail/textmail/Makefile
blob: a204e687338169f9ce730cb1cd589b2d8c941890 (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
34
35
36
37
38
# New ports collection makefile for:    textmail
# Date created:     8 August 2007
# Whom:         Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

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

MAINTAINER= ports@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 \
        ${LOCALBASE}/libexec/xpdf/pdftotext:${PORTSDIR}/graphics/xpdf

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

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} ${PREFIX}/bin/
    @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/

.include <bsd.port.mk>