summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 01:20:32 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 01:20:32 +0000
commit49482ce38463823b1a78ded911d3f5b64b823604 (patch)
tree80efa63bd3ea8f6b17989c6093f476e9aeafb339 /print
parent[PATCH] print/preview-latex: enable choose of ghostscript interpreter (diff)
[PATCH] print/transfig: 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/54950 Submitted by: Jens Rehsack <rehsack@liwing.de>
Notes
Notes: svn path=/head/; revision=88145
Diffstat (limited to 'print')
-rw-r--r--print/transfig/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/print/transfig/Makefile b/print/transfig/Makefile
index 73a454ed4661..457cfca3f25f 100644
--- a/print/transfig/Makefile
+++ b/print/transfig/Makefile
@@ -17,12 +17,26 @@ DISTNAME= ${PORTNAME}.${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Tools to convert Xfig's .fig files
+.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes
+GSPORT?= print/ghostscript-afpl
+.else
+GSPORT?= print/ghostscript-gnu
+.endif
+
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
RUN_DEPENDS= ppmtogif:${PORTSDIR}/graphics/netpbm \
- gs:${PORTSDIR}/print/ghostscript-gnu
+ gs:${PORTSDIR}/${GSPORT}
USE_IMAKE= yes
USE_XPM= yes
MAN1= fig2dev.1 fig2ps2tex.1 pic2tpic.1 transfig.1
+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
+
.include <bsd.port.mk>