summaryrefslogtreecommitdiff
path: root/graphics/ocaml-images
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 00:35:06 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 00:35:06 +0000
commit3ebe3c8b271dc8b4ad0d9246de99ffc874161876 (patch)
tree2f6845e6da0ca65b66b549b739eb8b64b959da9d /graphics/ocaml-images
parent[PATCH] graphics/ipe: enable choose of ghostscript interpreter (diff)
[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 <rehsack@liwing.de>
Diffstat (limited to 'graphics/ocaml-images')
-rw-r--r--graphics/ocaml-images/Makefile18
1 files changed, 16 insertions, 2 deletions
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 <bsd.port.mk>