Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Sep 2016 13:26:15 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r421265 - head/print/apsfilter
Message-ID:  <201609021326.u82DQF4X029994@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Fri Sep  2 13:26:15 2016
New Revision: 421265
URL: https://svnweb.freebsd.org/changeset/ports/421265

Log:
  Implement hpijs/hplip dependency option.
  
  Approved by:	hrs@
  Differential Revision:	D2628

Modified:
  head/print/apsfilter/Makefile

Modified: head/print/apsfilter/Makefile
==============================================================================
--- head/print/apsfilter/Makefile	Fri Sep  2 13:09:06 2016	(r421264)
+++ head/print/apsfilter/Makefile	Fri Sep  2 13:26:15 2016	(r421265)
@@ -3,7 +3,7 @@
 
 PORTNAME=	apsfilter
 PORTVERSION=	7.2.8
-PORTREVISION=	16
+PORTREVISION=	17
 CATEGORIES=	print
 MASTER_SITES=	http://www.apsfilter.org/download/
 DIST_SUBDIR=	apsfilter
@@ -16,8 +16,7 @@ LICENSE_NAME=	Postcard License
 LICENSE_FILE=	${WRKSRC}/LICENSE
 LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
-RUN_DEPENDS=	bash:shells/bash \
-		hpijs:print/hpijs
+RUN_DEPENDS=	bash:shells/bash
 
 USES=		tar:bzip2
 USE_SUBMAKE=	yes
@@ -28,9 +27,10 @@ SUB_FILES=	pkg-message
 
 OPTIONS_DEFINE=DOCS X11 GS PSUTILS ASCII CONVERT DVIPS FIG2DEV HTML2PS \
 	ATALK SAMBA COMPRESS MP3 OGG WAV
-OPTIONS_DEFAULT=X11 GS PSUTILS ASCII CONVERT A4
-OPTIONS_SINGLE=PAPERSIZE
+OPTIONS_DEFAULT=X11 GS PSUTILS ASCII CONVERT A4 HPLIP
+OPTIONS_SINGLE=PAPERSIZE HP_SUPPORT
 OPTIONS_SINGLE_PAPERSIZE=A4 LETTER LETTERDJ
+OPTIONS_SINGLE_HP_SUPPORT=HPIJS HPLIP
 NO_OPTIONS_SORT=yes
 PAPERSIZE_DESC=	papersize
 A4_DESC=	A4 papersize
@@ -46,6 +46,9 @@ HTML2PS_DESC=	HTML documents
 ATALK_DESC=	remote printing on AppleTalk remote printer
 SAMBA_DESC=	remote printing on Windows remote printer
 COMPRESS_DESC=	print compressed documents
+HP_SUPPORT_DESC=	HP Print Support
+HPIJS_DESC=	Depend on hpijs port
+HPLIP_DESC=	Depend on hplip port
 
 DOCS_MAKE_ARGS=	-DDOCS
 PORTDOCS=	ANNOUNCE FAQ HOWTO-BUGREPORTS apsfilter4.png \
@@ -76,6 +79,11 @@ PSUFX=	-letter
 .elif !empty(PORT_OPTIONS:MLETTERDJ)
 PSUFX=	-letterdj
 .endif
+.if !empty(PORT_OPTIONS:MHPIJS)
+RUN_DEPENDS+=	hpijs:${PORTSDIR}/print/hpijs
+.elif !empty(PORT_OPTIONS:MHPLIP)
+RUN_DEPENDS+=	hpijs:${PORTSDIR}/print/hplip
+.endif
 
 _DEPENDS_ASCII=	a2ps:print/a2ps \
 		enscript:print/enscript${PSUFX} \



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