summaryrefslogtreecommitdiff
path: root/print/font2svg
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 01:01:14 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 01:01:14 +0000
commita5975c2b1e165d4a5bf1b9a353f4b33daf896f64 (patch)
tree2c12974d25b1921fd1e44deb5fb720353875c817 /print/font2svg
parent[PATCH] misc/instant-workstation: enable choose of ghostscript interpreter (diff)
[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>
Notes
Notes: svn path=/head/; revision=88137
Diffstat (limited to 'print/font2svg')
-rw-r--r--print/font2svg/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/print/font2svg/Makefile b/print/font2svg/Makefile
index 97ed703d3d54..e2b492d1c38c 100644
--- a/print/font2svg/Makefile
+++ b/print/font2svg/Makefile
@@ -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}|" \