Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Nov 2014 11:19:54 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r373545 - head/print/muttprint
Message-ID:  <201411281119.sASBJseJ052179@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411281119.sASBJseJ052179>