summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 01:28:49 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 01:28:49 +0000
commitaf07884dbd2ffc98eba47b35347948c8b258e05d (patch)
treefe8b081321e6a8ceae0710f706e4f84f05c5943e /x11
parent[PATCH] print/pstotext: enable choose of ghostscript interpreter (diff)
[PATCH] x11/dgs: 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/54956 Submitted by: Jens Rehsack <rehsack@liwing.de>
Notes
Notes: svn path=/head/; revision=88150
Diffstat (limited to 'x11')
-rw-r--r--x11/dgs/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/x11/dgs/Makefile b/x11/dgs/Makefile
index 246c03fc69e0..eabaa5fb0654 100644
--- a/x11/dgs/Makefile
+++ b/x11/dgs/Makefile
@@ -14,10 +14,16 @@ MASTER_SITE_SUBDIR= dgs
MAINTAINER= nakai@FreeBSD.org
COMMENT= A display ghostscript system
+.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes
+GSPORT?= print/ghostscript-afpl
+.else
+GSPORT?= print/ghostscript-gnu
+.endif
+
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff
-RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu
+RUN_DEPENDS= gs:${PORTSDIR}/${GSPORT}
USE_X_PREFIX= yes
USE_GMAKE= yes
@@ -32,6 +38,14 @@ MANN= dpsexec.man makepsres.man xepsf.man
.error You have `USE_DGS' variable defined either in environment or in make(1) arguments. Please undefine and try again.
.endif
+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
+
pre-patch:
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
's|manm|mann|g'