Index: graphics/ocaml-images/Makefile
===================================================================
diff -u graphics/ocaml-images/Makefile.orig graphics/ocaml-images/Makefile
--- graphics/ocaml-images/Makefile.orig	Sun Jul 27 12:43:08 2003
+++ graphics/ocaml-images/Makefile	Sun Jul 27 13:14:59 2003
@@ -18,12 +18,18 @@
 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 \
@@ -36,5 +42,13 @@
 	CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include" \
 	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>
