svn commit: r373545 - head/print/muttprint

John Marino marino at FreeBSD.org
Fri Nov 28 11:19:54 UTC 2014


Author: marino
Date: Fri Nov 28 11:19:53 2014
New Revision: 373545
URL: https://svnweb.freebsd.org/changeset/ports/373545
QAT: https://qat.redports.org/buildarchive/r373545/

Log:
  print/muttprint: provide option to build it without X11 support
  
  PR:		194283
  Submitted by:	Frank Wall
  Approved by:	maintainer timeout

Modified:
  head/print/muttprint/Makefile

Modified: head/print/muttprint/Makefile
==============================================================================
--- head/print/muttprint/Makefile	Fri Nov 28 11:19:53 2014	(r373544)
+++ head/print/muttprint/Makefile	Fri Nov 28 11:19:53 2014	(r373545)
@@ -3,7 +3,7 @@
 
 PORTNAME?=	muttprint
 PORTVERSION=	0.72d
-PORTREVISION=	10
+PORTREVISION=	11
 CATEGORIES?=	print mail
 MASTER_SITES=	SF/muttprint/muttprint/muttprint-${PORTVERSION}
 
@@ -12,7 +12,6 @@ COMMENT?=	Utility to print mail for most
 
 RUN_DEPENDS=	psnup:${PORTSDIR}/print/psutils \
 		uncompface:${PORTSDIR}/mail/faces \
-		convert:${PORTSDIR}/graphics/ImageMagick \
 		p5-TimeDate>=0:${PORTSDIR}/devel/p5-TimeDate \
 		p5-Text-Iconv>=0:${PORTSDIR}/converters/p5-Text-Iconv
 
@@ -22,7 +21,10 @@ USE_TEX=	latex dvipsk
 NO_BUILD=	yes
 REINPLACE_ARGS=	-i ""
 
-OPTIONS_DEFINE=	CUPS DOCS
+OPTIONS_DEFINE=		CUPS DOCS X11
+OPTIONS_DEFAULT=	X11
+X11_DESC=		graphics/ImageMagick[-nox11] dependency
+
 CUPS_RUN_DEPENDS=	cupstestppd:${PORTSDIR}/print/cups-base \
 			espgs:${PORTSDIR}/print/cups-pstoraster
 
@@ -42,6 +44,12 @@ PRINT_COMMAND=lpr -P$$PRINTER
 INSTALL_TARGET=install-with-doc
 .endif
 
+.if ${PORT_OPTIONS:MX11}
+RUN_DEPENDS+=	convert:${PORTSDIR}/graphics/ImageMagick
+.else
+RUN_DEPENDS+=	convert:${PORTSDIR}/graphics/ImageMagick-nox11
+.endif
+
 pre-everything::
 	@${ECHO}
 	@${ECHO} Set PAPERSIZE=a4 if you need that paper size.


More information about the svn-ports-head mailing list