pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang



Module Name:    pkgsrc
Committed By:   dholland
Date:           Sun Jul  3 19:16:03 UTC 2016

Modified Files:
        pkgsrc/lang/smlnj: Makefile
        pkgsrc/lang/smlnj11072: Makefile

Log Message:
Use BUILD_ENV properly.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 pkgsrc/lang/smlnj/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/lang/smlnj11072/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/smlnj/Makefile
diff -u pkgsrc/lang/smlnj/Makefile:1.28 pkgsrc/lang/smlnj/Makefile:1.29
--- pkgsrc/lang/smlnj/Makefile:1.28     Sun Jul  3 19:15:02 2016
+++ pkgsrc/lang/smlnj/Makefile  Sun Jul  3 19:16:03 2016
@@ -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)

Index: pkgsrc/lang/smlnj11072/Makefile
diff -u pkgsrc/lang/smlnj11072/Makefile:1.4 pkgsrc/lang/smlnj11072/Makefile:1.5
--- pkgsrc/lang/smlnj11072/Makefile:1.4 Sun Jul  3 19:15:02 2016
+++ pkgsrc/lang/smlnj11072/Makefile     Sun Jul  3 19:16:03 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2016/07/03 19:15:02 dholland Exp $
+# $NetBSD: Makefile,v 1.5 2016/07/03 19:16:03 dholland Exp $
 #
 
 DISTNAME=      boot.${BOX}-unix
@@ -44,6 +44,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"
 
@@ -114,9 +123,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)



Home | Main Index | Thread Index | Old Index