From fd47b70a6234d2e1261923b00ebdf83be400534d Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sun, 31 Aug 2003 01:08:35 +0000 Subject: [PATCH] print/ggv2: 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/54942 Submitted by: Jens Rehsack --- print/ggv2/Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'print/ggv2') diff --git a/print/ggv2/Makefile b/print/ggv2/Makefile index 3cbcf4ac92c1..99e011a6ab5f 100644 --- a/print/ggv2/Makefile +++ b/print/ggv2/Makefile @@ -16,8 +16,14 @@ DIST_SUBDIR= gnome2 MAINTAINER= gnome@FreeBSD.org COMMENT= GNOME 2 ghostscript viewer -BUILD_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu -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 + +BUILD_DEPENDS= gs:${PORTSDIR}/${GSPORT} +RUN_DEPENDS= gs:${PORTSDIR}/${GSPORT} USE_BZIP2= yes USE_X_PREFIX= yes @@ -28,4 +34,12 @@ USE_REINPLACE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" +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 + .include -- cgit v1.2.3