diff options
Diffstat (limited to 'graphics/peps/Makefile')
-rw-r--r-- | graphics/peps/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
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 |