summaryrefslogtreecommitdiff
path: root/print/apsfilter
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2016-09-02 13:26:15 +0000
committerCy Schubert <cy@FreeBSD.org>2016-09-02 13:26:15 +0000
commitca9b45980eea73e1121298870f6ab28a3942812f (patch)
tree3422d350f939d5b88cc9a43b3abe6fe1d67794f2 /print/apsfilter
parent- Update to 1.9.9 (diff)
Implement hpijs/hplip dependency option.
Approved by: hrs@ Differential Revision: D2628
Notes
Notes: svn path=/head/; revision=421265
Diffstat (limited to 'print/apsfilter')
-rw-r--r--print/apsfilter/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/print/apsfilter/Makefile b/print/apsfilter/Makefile
index 868fcec3fa96..f0691b52b37d 100644
--- a/print/apsfilter/Makefile
+++ b/print/apsfilter/Makefile
@@ -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} \