summaryrefslogtreecommitdiff
path: root/lang/smlnj/Makefile
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2016-07-03 19:16:03 +0000
committerdholland <dholland@pkgsrc.org>2016-07-03 19:16:03 +0000
commit310f870dcce257371b977d0b5697e9d0cbf9608d (patch)
tree44e5cfe24dc2c975be84321a74a7064a1e52163a /lang/smlnj/Makefile
parentcd141763e199542900d92ca0e82e5d17b7a33bac (diff)
downloadpkgsrc-310f870dcce257371b977d0b5697e9d0cbf9608d.tar.gz
Use BUILD_ENV properly.
Diffstat (limited to 'lang/smlnj/Makefile')
-rw-r--r--lang/smlnj/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/lang/smlnj/Makefile b/lang/smlnj/Makefile
index d2cdf307b1c..387b184a1d4 100644
--- a/lang/smlnj/Makefile
+++ b/lang/smlnj/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2016/07/03 19:15:02 dholland Exp $
+# $NetBSD: Makefile,v 1.29 2016/07/03 19:16:03 dholland Exp $
#
DISTNAME= boot.${BOX}-unix
@@ -45,6 +45,15 @@ SML_LIBDIR= ${SML_BASE}/lib
SML_BINDIR= ${SML_BASE}/bin
SML_SCRIPTS= _link-sml _run-sml _ml-build _ml-makedepend
+# while building, the work directory is the "installation"
+BUILD_ENV+= SMLNJ_HOME="${WRKDIR}"
+
+# the build uses patch directly (yuk)
+BUILD_ENV+= PATCH=${PATCH:Q} PATCH_ARGS=${PATCH_ARGS:Q}
+
+# not sure why this is needed (XXX?)
+BUILD_ENV+= FILESDIR=${FILESDIR}
+
# note that this includes bsd.prefs.mk
.include "../../lang/smlnj/Makefile.common"
@@ -115,9 +124,7 @@ do-configure:
# The build target needs to run $WRKDIR/config/install.sh
do-build:
- cd ${WRKDIR} && unset PWD && \
- FILESDIR=${FILESDIR} PATCH=${PATCH:Q} PATCH_ARGS=${PATCH_ARGS:Q} \
- SMLNJ_HOME="${WRKDIR}" ./config/install.sh
+ cd ${WRKDIR} && unset PWD && ${SETENV} ${BUILD_ENV} ./config/install.sh
# install target
# (see ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.38/INSTALL)