Implement hpijs/hplip dependency option.

Approved by:	hrs@
Differential Revision:	D2628
This commit is contained in:
Cy Schubert 2016-09-02 13:26:15 +00:00
parent ea71999009
commit ca9b45980e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421265

View File

@ -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} \