1 # Created by: Oliver Braun <obraun@informatik.unibw-muenchen.de>
8 MASTER_SITES= SF/muttprint/muttprint/muttprint-${PORTVERSION}
10 MAINTAINER= guru@unixarea.de
11 COMMENT= Utility to print mail for most any mail client
15 BUILD_DEPENDS= docbook2pdf:textproc/docbook-utils \
16 docbook-sgml>0:textproc/docbook-sgml
17 RUN_DEPENDS= psnup:print/psutils \
18 uncompface:mail/faces \
19 p5-TimeDate>=0:devel/p5-TimeDate \
20 p5-Text-Iconv>=0:converters/p5-Text-Iconv
23 USES= autoreconf gmake perl5
29 OPTIONS_DEFINE= CUPS X11
31 X11_DESC= graphics/ImageMagick[-nox11] dependency
33 CUPS_RUN_DEPENDS= lpr-cups:print/cups
35 .if !defined(PAPERSIZE)
39 .include <bsd.port.options.mk>
41 .if ${PORT_OPTIONS:MCUPS}
44 PRINT_COMMAND=lpr -P$$PRINTER
47 .if ${PORT_OPTIONS:MX11}
48 RUN_DEPENDS+= convert:graphics/ImageMagick
50 RUN_DEPENDS+= convert:graphics/ImageMagick-nox11
55 @${ECHO} Set PAPERSIZE=a4 if you need that paper size.
59 @${RM} ${WRKSRC}/pics/*.orig
61 @${REINPLACE_CMD} 's|%%PAPERSIZE%%|${PAPERSIZE:tu}|' \
64 @${REINPLACE_CMD} 's|%%PAPERSIZE%%|${PAPERSIZE}|' \
67 @${REINPLACE_CMD} 's|%%PRINT_COMMAND%%|${PRINT_COMMAND}| ; \
68 s|%%PREFIX%%|${PREFIX}|' \
70 .if ${PORT_OPTIONS:MCUPS}
71 @${REINPLACE_CMD} 's|lpr $$CUPS_OPTIONS|${PREFIX}/bin/lpr $$CUPS_OPTIONS|' ${WRKSRC}/muttprint
74 .include <bsd.port.mk>