From 9379ef6cc7ff72781a69cf4aecf29638013b871b Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sun, 31 Aug 2003 00:33:20 +0000 Subject: [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 --- graphics/epstool/Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3