freebsd-ports/mail/textmail/Makefile
Koop Mast cf649469f2 Update poppler to 0.40.0. [1]
Add patches to py-poppler [2] and rubygem-poppler [3] to fix the build
of these ports with poppler 0.39+.

PR:		206293 [1]
Submitted by:	olivierd@ [1]
Obtained from:	ubuntu [2], rubygem-poppler upstream [3]
2016-01-21 19:40:10 +00:00

34 lines
988 B
Makefile

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= textmail
PORTVERSION= 20070803
PORTREVISION= 6
CATEGORIES= mail
MASTER_SITES= http://raf.org/textmail/
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 \
pdftotext:${PORTSDIR}/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>