summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
Diffstat (limited to 'x11')
-rw-r--r--x11/ocaml-graphics/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/x11/ocaml-graphics/Makefile b/x11/ocaml-graphics/Makefile
index 7a4715e055f..bcaa7c73186 100644
--- a/x11/ocaml-graphics/Makefile
+++ b/x11/ocaml-graphics/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2005/02/04 22:38:59 adrianp Exp $
+# $NetBSD: Makefile,v 1.3 2005/03/24 11:33:24 adam Exp $
.include "../../lang/ocaml/Makefile.common"
@@ -7,7 +7,6 @@ PKGNAME= ${DISTNAME:S/ocaml/ocaml-graphics/}
COMMENT+= (graphics library)
USE_X11= yes
-
CONFIGURE_ARGS+= -x11include ${X11BASE}/include
CONFIGURE_ARGS+= -x11lib ${X11BASE}/lib
CONFIGURE_ARGS+= -no-tk
@@ -32,6 +31,12 @@ PLIST_SRC+= ${PKGDIR}/PLIST.stub
BUILDLINK_DEPMETHOD.ocaml= full
+SUBST_CLASSES+= depend
+SUBST_STAGE.depend= post-patch
+SUBST_FILES.depend= otherlibs/graph/.depend
+SUBST_SED.depend= -e 's,/usr/X11R6,${X11BASE},g'
+SUBST_MESSAGE.depend= "Fixing .depend in otherlibs/graph"
+
.include "../../lang/ocaml/buildlink3.mk"
post-build: