diff options
-rw-r--r-- | graphics/ImageMagick/Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/graphics/ImageMagick/Makefile b/graphics/ImageMagick/Makefile index 0e583f833954..410cbff34df6 100644 --- a/graphics/ImageMagick/Makefile +++ b/graphics/ImageMagick/Makefile @@ -213,12 +213,18 @@ CONFIGURE_ARGS+= --without-mpeg2 .endif .if defined(NEED_GS) +.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes +GSPORT?= print/ghostscript-afpl +.else +GSPORT?= print/ghostscript-gnu +.endif + .if defined(WITHOUT_X11) -BUILD_DEPENDS+= gs:${PORTSDIR}/print/ghostscript-gnu-nox11 -RUN_DEPENDS+= gs:${PORTSDIR}/print/ghostscript-gnu-nox11 +BUILD_DEPENDS+= gs:${PORTSDIR}/${GSPORT}-nox11 +RUN_DEPENDS+= gs:${PORTSDIR}/${GSPORT}-nox11 .else -BUILD_DEPENDS+= gs:${PORTSDIR}/print/ghostscript-gnu -RUN_DEPENDS+= gs:${PORTSDIR}/print/ghostscript-gnu +BUILD_DEPENDS+= gs:${PORTSDIR}/${GSPORT} +RUN_DEPENDS+= gs:${PORTSDIR}/${GSPORT} .endif .endif |