2013-04-24 06:13:09 +02:00
|
|
|
# Created by: Oliver Braun <obraun@informatik.unibw-muenchen.de>
|
2002-02-12 05:18:19 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2003-10-07 09:46:57 +02:00
|
|
|
PORTNAME?= muttprint
|
2005-05-16 22:02:00 +02:00
|
|
|
PORTVERSION= 0.72d
|
2014-11-28 12:19:53 +01:00
|
|
|
PORTREVISION= 11
|
2003-10-07 09:46:57 +02:00
|
|
|
CATEGORIES?= print mail
|
2009-08-22 02:35:32 +02:00
|
|
|
MASTER_SITES= SF/muttprint/muttprint/muttprint-${PORTVERSION}
|
2002-02-12 05:18:19 +01:00
|
|
|
|
2014-10-11 13:50:13 +02:00
|
|
|
MAINTAINER?= guru@unixarea.de
|
2003-10-07 09:46:57 +02:00
|
|
|
COMMENT?= Utility to print mail for most any mail client
|
2002-02-12 05:18:19 +01:00
|
|
|
|
2013-05-06 04:00:40 +02:00
|
|
|
RUN_DEPENDS= psnup:${PORTSDIR}/print/psutils \
|
2002-02-18 10:54:28 +01:00
|
|
|
uncompface:${PORTSDIR}/mail/faces \
|
2012-06-30 07:52:54 +02:00
|
|
|
p5-TimeDate>=0:${PORTSDIR}/devel/p5-TimeDate \
|
|
|
|
p5-Text-Iconv>=0:${PORTSDIR}/converters/p5-Text-Iconv
|
2002-02-13 16:59:10 +01:00
|
|
|
|
2014-09-06 16:51:52 +02:00
|
|
|
USES= perl5 gmake
|
2014-10-13 20:18:27 +02:00
|
|
|
USE_TEX= latex dvipsk
|
2004-05-28 10:47:30 +02:00
|
|
|
|
2014-09-06 16:51:52 +02:00
|
|
|
NO_BUILD= yes
|
2002-09-12 13:43:43 +02:00
|
|
|
REINPLACE_ARGS= -i ""
|
2014-09-06 16:51:52 +02:00
|
|
|
|
2014-11-28 12:19:53 +01:00
|
|
|
OPTIONS_DEFINE= CUPS DOCS X11
|
|
|
|
OPTIONS_DEFAULT= X11
|
|
|
|
X11_DESC= graphics/ImageMagick[-nox11] dependency
|
|
|
|
|
2014-09-06 16:51:52 +02:00
|
|
|
CUPS_RUN_DEPENDS= cupstestppd:${PORTSDIR}/print/cups-base \
|
|
|
|
espgs:${PORTSDIR}/print/cups-pstoraster
|
|
|
|
|
|
|
|
.if !defined(PAPERSIZE)
|
|
|
|
PAPERSIZE= letter
|
|
|
|
.endif
|
2002-02-12 05:18:19 +01:00
|
|
|
|
2014-04-06 17:42:15 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2002-02-12 05:18:19 +01:00
|
|
|
|
2014-04-06 17:42:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MCUPS}
|
2003-08-06 21:27:25 +02:00
|
|
|
PRINT_COMMAND=CUPS
|
|
|
|
.else
|
|
|
|
PRINT_COMMAND=lpr -P$$PRINTER
|
|
|
|
.endif
|
|
|
|
|
2014-04-06 17:42:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2002-02-12 05:22:45 +01:00
|
|
|
INSTALL_TARGET=install-with-doc
|
2002-02-12 05:18:19 +01:00
|
|
|
.endif
|
|
|
|
|
2014-11-28 12:19:53 +01:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
|
|
|
RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
|
|
|
|
.else
|
|
|
|
RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick-nox11
|
|
|
|
.endif
|
|
|
|
|
2003-08-06 21:27:25 +02:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO}
|
2003-08-06 22:04:59 +02:00
|
|
|
@${ECHO} Set PAPERSIZE=a4 if you need that paper size.
|
2003-08-06 21:27:25 +02:00
|
|
|
@${ECHO}
|
|
|
|
|
2002-09-12 13:43:43 +02:00
|
|
|
post-patch:
|
|
|
|
@${RM} -f ${WRKSRC}/pics/*.orig
|
|
|
|
@${GUNZIP_CMD} ${WRKSRC}/doc/manpages/*/muttprint.1.gz
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share/doc/packages|${PREFIX}/share/doc|g ; \
|
|
|
|
s|/usr/share|${PREFIX}/share|g ; \
|
|
|
|
s|/usr/bin|${PREFIX}/bin|g ; \
|
|
|
|
s|/etc|${PREFIX}/etc|g ; \
|
|
|
|
s|/usr/lib|${PREFIX}/lib|g' \
|
|
|
|
${WRKSRC}/doc/manpages/*/muttprint.1 \
|
|
|
|
${WRKSRC}/doc/manual/*/manual-*/*.html
|
2005-05-16 22:02:00 +02:00
|
|
|
@${REINPLACE_CMD} -e '/\.css/d' ${WRKSRC}/doc/manual/*/Makefile
|
2003-08-06 21:27:25 +02:00
|
|
|
.if ${PAPERSIZE}==a4
|
2014-05-05 11:45:36 +02:00
|
|
|
@${REINPLACE_CMD} 's|%%PAPERSIZE%%|${PAPERSIZE:tu}|' \
|
2003-08-06 21:27:25 +02:00
|
|
|
${WRKSRC}/muttprint
|
|
|
|
.else
|
|
|
|
@${REINPLACE_CMD} 's|%%PAPERSIZE%%|${PAPERSIZE}|' \
|
|
|
|
${WRKSRC}/muttprint
|
|
|
|
.endif
|
|
|
|
@${REINPLACE_CMD} 's|%%PRINT_COMMAND%%|${PRINT_COMMAND}| ; \
|
|
|
|
s|%%PREFIX%%|${PREFIX}|' \
|
|
|
|
${WRKSRC}/muttprint
|
2014-04-06 17:42:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MCUPS}
|
2003-08-06 21:27:25 +02:00
|
|
|
@${REINPLACE_CMD} 's|lpr $$CUPS_OPTIONS|${PREFIX}/bin/lpr $$CUPS_OPTIONS|' ${WRKSRC}/muttprint
|
|
|
|
.endif
|
2002-09-12 13:43:43 +02:00
|
|
|
@${GZIP_CMD} ${WRKSRC}/doc/manpages/*/muttprint.1
|
|
|
|
|
2009-07-22 18:27:08 +02:00
|
|
|
.include <bsd.port.mk>
|