summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/ocaml/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/lang/ocaml/Makefile b/lang/ocaml/Makefile
index b20e7db9257..d22fedf1871 100644
--- a/lang/ocaml/Makefile
+++ b/lang/ocaml/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.54 2007/09/14 15:34:09 adam Exp $
+# $NetBSD: Makefile,v 1.55 2007/09/26 03:10:54 dmcmahill Exp $
.include "Makefile.common"
@@ -33,5 +33,15 @@ PLIST_SRC+= ${PKGDIR}/PLIST.prof
# Common ocaml files.
PLIST_SRC+= ${PKGDIR}/PLIST
+# This is needed because ${WRKSRC}/build/partial-install.sh uses
+# $PWD as part of its script. However, with /bin/sh on SunOS
+# (cd work/foo-1.0 && echo $PWD) will show that the value of PWD is
+# set before the cd takes place and is then passed down. So the end
+# result is when ./build/partial-install.sh is called, PWD is set
+# to /usr/pkgsrc/devel/ocaml instead of ${WRKSRC}. /bin/ksh, which
+# is what ${SH} is on SunOS, doesn't exhibit this behaviour.
+.if ${OPSYS} == "SunOS"
+INSTALL_MAKE_FLAGS+= SHELL=${SH}
+.endif
.include "../../mk/bsd.pkg.mk"