diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 00:33:20 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 00:33:20 +0000 |
commit | 9379ef6cc7ff72781a69cf4aecf29638013b871b (patch) | |
tree | aa678f2fa7f5b787e8bf1a504345401788c29ccb | |
parent | b07dab8fcea68acbe264a925fc0c33faca47eef6 (diff) | |
download | ports-9379ef6cc7ff72781a69cf4aecf29638013b871b.tar.gz ports-9379ef6cc7ff72781a69cf4aecf29638013b871b.zip |
[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
-rw-r--r-- | graphics/epstool/Makefile | 16 |
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 |