mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
289883b11b
* Add PKGNAMESUFFIX and rename the directory. This was done to show that IM6 is not the "main" version. But still fully supported by upstream. * Convert a number of options to optionhelpers. * Add option for ISO/IEC 23008-12:2017 HEIF suport * Add comment to pkg-descr explaining IM6's "legacy" tag. * Add comment to the patch-config_policy.xml file why it still needed. Please note that IM7 is not a drop in replacement due to library API and command arguments changes. And as a result ports need to decide for themself which version to use. Chase these changes in all the ports that using IM6. PR: 225102 (based on, only the version update) [1] Submitted by: Pascal Christen <pascal.christen@hostpoint.ch>
76 lines
1.7 KiB
Makefile
76 lines
1.7 KiB
Makefile
# Created by: Oliver Braun <obraun@informatik.unibw-muenchen.de>
|
|
# $FreeBSD$
|
|
|
|
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
|
|
|
|
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
|
|
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}
|
|
RUN_DEPENDS+= convert:graphics/ImageMagick6
|
|
.else
|
|
RUN_DEPENDS+= convert:graphics/ImageMagick6-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>
|