summaryrefslogtreecommitdiff
path: root/deskutils/gworkspace/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/gworkspace/Makefile')
-rw-r--r--deskutils/gworkspace/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/deskutils/gworkspace/Makefile b/deskutils/gworkspace/Makefile
index ac1046ab80ce..11597af2cb88 100644
--- a/deskutils/gworkspace/Makefile
+++ b/deskutils/gworkspace/Makefile
@@ -24,8 +24,13 @@ MAKEFILE= GNUmakefile
.ifdef WITHOUT_GHOSTSCRIPT
PLIST_SUB+= PDFVIEW="@comment "
.else
-BUILD_DEPENDS+= gs:${PORTSDIR}/print/ghostscript-gnu
-RUN_DEPENDS+= gs:${PORTSDIR}/print/ghostscript-gnu
+.if defined(WITH_GHOSTSCRIPT_AFP1)
+GSPORT?= print/ghostscript-afp1
+.else
+GSPORT?= print/ghostscript-gnu
+.endif
+BUILD_DEPENDS+= gs:${PORTSDIR}/${GSPORT}
+RUN_DEPENDS+= gs:${PORTSDIR}/${GSPORT}
PLIST_SUB+= PDFVIEW=""
.endif