From 875c9272f4adb6a79ad7987de9ba8dbf47fe45dd Mon Sep 17 00:00:00 2001 From: marcus Date: Sun, 31 Aug 2003 02:13:35 +0000 Subject: Merge ghostscript port selection from the FreeBSD ports tree. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1115 df743ca5-7f9a-e211-a948-0013205c9059 --- print/ggv2/Makefile | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/print/ggv2/Makefile b/print/ggv2/Makefile index 0c3508e4b..c6beeaa8b 100644 --- a/print/ggv2/Makefile +++ b/print/ggv2/Makefile @@ -16,8 +16,18 @@ 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) +.if ${WITH_GHOSTSCRIPT_AFPL} == yes +GSPORT?= print/ghostscript-afpl +.else +GSPORT?= print/ghostscript-gnu +.endif +.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 +38,12 @@ USE_REINPLACE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" +pre-everything:: +.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes + @${ECHO_MSG} "" + @${ECHO_MSG} " Define WITH_GHOSTSCRIPT_AFPL=yes to use" + @${ECHO_MSG} " AFPL Postscript interpreter instead of GNU one" + @${ECHO_MSG} "" +.endif + .include -- cgit v1.2.3