From 3ebe3c8b271dc8b4ad0d9246de99ffc874161876 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sun, 31 Aug 2003 00:35:06 +0000 Subject: [PATCH] graphics/ocaml-images: 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/54930 Submitted by: Jens Rehsack --- graphics/ocaml-images/Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'graphics') diff --git a/graphics/ocaml-images/Makefile b/graphics/ocaml-images/Makefile index ade079c96883..6629140afa9f 100644 --- a/graphics/ocaml-images/Makefile +++ b/graphics/ocaml-images/Makefile @@ -18,12 +18,18 @@ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= Objective Caml image processing library +.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes +GSPORT?= print/ghostscript-afpl +.else +GSPORT?= print/ghostscript-gnu +.endif + BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ lablgtk:${PORTSDIR}/x11-toolkits/ocaml-lablgtk \ - gs:${PORTSDIR}/print/ghostscript-gnu + gs:${PORTSDIR}/${GSPORT} RUN_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ lablgtk:${PORTSDIR}/x11-toolkits/ocaml-lablgtk \ - gs:${PORTSDIR}/print/ghostscript-gnu + gs:${PORTSDIR}/${GSPORT} LIB_DEPENDS= ungif:${PORTSDIR}/graphics/libungif \ png:${PORTSDIR}/graphics/png \ jpeg:${PORTSDIR}/graphics/jpeg \ @@ -37,4 +43,12 @@ CONFIGURE_ENV= \ LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib" USE_GMAKE= yes +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