From 2575d054a6920ea7a3b624b5a9c97a4211ee6273 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sun, 31 Aug 2003 00:35:54 +0000 Subject: [PATCH] graphics/peps: 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/54931 Submitted by: Jens Rehsack --- graphics/peps/Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'graphics/peps') diff --git a/graphics/peps/Makefile b/graphics/peps/Makefile index 21b6a7d2a342..e944bdccd93b 100644 --- a/graphics/peps/Makefile +++ b/graphics/peps/Makefile @@ -15,11 +15,25 @@ MASTER_SITE_SUBDIR= petef MAINTAINER= petef@FreeBSD.org COMMENT= Converts EPS images to anti-aliased PGM bitmaps -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} \ pnmtopng:${PORTSDIR}/graphics/netpbm USE_REINPLACE= 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!cc -O3!${CC} ${CFLAGS}!' ${WRKSRC}/Makefile -- cgit v1.2.3