summaryrefslogtreecommitdiff
path: root/graphics/epstool
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 00:33:20 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 00:33:20 +0000
commit9379ef6cc7ff72781a69cf4aecf29638013b871b (patch)
treeaa678f2fa7f5b787e8bf1a504345401788c29ccb /graphics/epstool
parent[PATCH] graphics/eps2png: enable choose of ghostscript interpreter (diff)
[PATCH] graphics/epstool: 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/54928 Submitted by: Jens Rehsack <rehsack@liwing.de>
Notes
Notes: svn path=/head/; revision=88126
Diffstat (limited to 'graphics/epstool')
-rw-r--r--graphics/epstool/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/graphics/epstool/Makefile b/graphics/epstool/Makefile
index a834d7a8a4f6..c57fa3626490 100644
--- a/graphics/epstool/Makefile
+++ b/graphics/epstool/Makefile
@@ -13,13 +13,27 @@ MASTER_SITES= ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/
MAINTAINER= ports@FreeBSD.org
COMMENT= Create or extract preview bitmaps in EPS files
-RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu
+.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes
+GSPORT?= print/ghostscript-afpl
+.else
+GSPORT?= print/ghostscript-gnu
+.endif
+
+RUN_DEPENDS= gs:${PORTSDIR}/${GSPORT}
USE_GMAKE= yes
MAKEFILE= makefile
MAKE_ARGS= CC="${CC}" CDEBUG="${CFLAGS}" LINK="${CC}" EPSLIB=""
ALL_TARGET= ${PORTNAME}
+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-extract:
@${RM} -f ${WRKSRC}/epstool