[PATCH] print/font2svg: enable choose of ghostscript interpreter
This patch allows the admin of the machine to choose either print/ghostscript-gnu or print/ghostscript-afp1 PR: ports/54940 Submitted by: Jens Rehsack <rehsack@liwing.de>
This commit is contained in:
parent
93c6388edb
commit
a5975c2b1e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88137
1 changed files with 15 additions and 1 deletions
|
@ -15,12 +15,26 @@ MASTER_SITES= http://www.gdv.uni-hannover.de/~peinecke/font2svg/
|
|||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= All font to svg-font converter
|
||||
|
||||
.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes
|
||||
GSPORT?= print/ghostscript-afpl
|
||||
.else
|
||||
GSPORT?= print/ghostscript-gnu
|
||||
.endif
|
||||
|
||||
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2 \
|
||||
gs:${PORTSDIR}/print/ghostscript-gnu
|
||||
gs:${PORTSDIR}/${GSPORT}
|
||||
|
||||
USE_REINPLACE= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
pre-fetch:
|
||||
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
|
||||
@${ECHO} ""
|
||||
@${ECHO} " Define WITH_GHOSTSCRIPT_AFPL=yes to use"
|
||||
@${ECHO} " AFPL Postscript interpreter instead of GNU one"
|
||||
@${ECHO} ""
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e "s|/bin/bash|${LOCALBASE}/bin/bash|" \
|
||||
-e "s|/home/peinecke/cprog/font2svg|${DATADIR}|" \
|
||||
|
|
Loading…
Reference in a new issue