diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2007-09-26 03:10:54 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2007-09-26 03:10:54 +0000 |
commit | 6461be475e28093e4b8c98e5a3483b5ee88f6aa6 (patch) | |
tree | c27a5b97cb42d804cae75fb7feb418b69cccb19c | |
parent | 0e7bc79fb282c6510c10cd504d5a01714ba13bb1 (diff) | |
download | pkgsrc-6461be475e28093e4b8c98e5a3483b5ee88f6aa6.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.
-rw-r--r-- | lang/ocaml/Makefile | 12 |
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" |