freebsd-ports/print/muttprint/Makefile
Muhammad Moinur Rahman 721e5776c9 Mk/**tex.mk: Convert bsd.tex.mk to USES=tex
- Update all the consumers to use USES=tex
- USE_TEX=yes is the old way of writing USES=tex which has been removed
  and replaced in all ports
- Almost all of the USE_TEX features remains unchanged
- Some consumers had the same variables defined both in the mk
  infrastructure and also in the ports which have been removed from the
  ports as those are redundant.

In case any of the consumers are failing to build please make sure that
the nexessary USES=tex is there. Unlike previous USE_TEX=yes will no
longer load the required VARS for tex and related dependencies.

Reviewed by:	portmgr
Approved by:	portmgr (blanket)
2022-12-19 08:44:58 -06:00

74 lines
1.7 KiB
Makefile

PORTNAME= muttprint
PORTVERSION= 0.73
PORTREVISION= 4
CATEGORIES= print mail
MASTER_SITES= SF/muttprint/muttprint/muttprint-${PORTVERSION}
MAINTAINER= guru@unixarea.de
COMMENT= Utility to print mail for most any mail client
WWW= http://muttprint.sourceforge.net/
LICENSE= GPLv2
BUILD_DEPENDS= docbook2pdf:textproc/docbook-utils \
docbook-sgml>0:textproc/docbook-sgml
RUN_DEPENDS= psnup:print/psutils \
p5-TimeDate>=0:devel/p5-TimeDate \
p5-Text-Iconv>=0:converters/p5-Text-Iconv
GNU_CONFIGURE= yes
USES= autoreconf gmake perl5 tex
USE_TEX= latex dvipsk
NO_BUILD= yes
REINPLACE_ARGS= -i ""
OPTIONS_DEFINE= CUPS X11 DOCS XFACE
OPTIONS_DEFAULT= X11
X11_DESC= graphics/ImageMagick[-nox11] dependency
XFACE_DESC= mail/faces dependency (requires gtk12)
CUPS_RUN_DEPENDS= lpr-cups:print/cups
XFACE_RUN_DEPENDS= uncompface:mail/faces
.if !defined(PAPERSIZE)
PAPERSIZE= letter
.endif
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCUPS}
PRINT_COMMAND=CUPS
.else
PRINT_COMMAND=lpr -P$$PRINTER
.endif
.if ${PORT_OPTIONS:MX11}
USES+= magick:6,run
.else
USES+= magick:6,run,nox11
.endif
pre-everything::
@${ECHO}
@${ECHO} Set PAPERSIZE=a4 if you need that paper size.
@${ECHO}
post-patch:
@${RM} ${WRKSRC}/pics/*.orig
.if ${PAPERSIZE}==a4
@${REINPLACE_CMD} 's|%%PAPERSIZE%%|${PAPERSIZE:tu}|' \
${WRKSRC}/muttprint
.else
@${REINPLACE_CMD} 's|%%PAPERSIZE%%|${PAPERSIZE}|' \
${WRKSRC}/muttprint
.endif
@${REINPLACE_CMD} 's|%%PRINT_COMMAND%%|${PRINT_COMMAND}| ; \
s|%%PREFIX%%|${PREFIX}|' \
${WRKSRC}/muttprint
.if ${PORT_OPTIONS:MCUPS}
@${REINPLACE_CMD} 's|lpr $$CUPS_OPTIONS|${PREFIX}/bin/lpr $$CUPS_OPTIONS|' ${WRKSRC}/muttprint
.endif
.include <bsd.port.mk>