summaryrefslogtreecommitdiff
path: root/lang/ocaml
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2007-09-26 03:10:54 +0000
committerdmcmahill <dmcmahill>2007-09-26 03:10:54 +0000
commit5dd02b16bf31abe5102a41fd445b11cd4e3b81de (patch)
treec27a5b97cb42d804cae75fb7feb418b69cccb19c /lang/ocaml
parentb751cb31471b46f91139961485f994cf4e964db9 (diff)
downloadpkgsrc-5dd02b16bf31abe5102a41fd445b11cd4e3b81de.tar.gz
Set SHELL explicitly on the install make invocation when on solaris.
By using /bin/ksh (${SH}), we get the desired value of $CWD in on of the scripts called by the programs install procedure. Fixes installation under solaris, other platforms unaffected.
Diffstat (limited to 'lang/ocaml')
-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"