summaryrefslogtreecommitdiff
path: root/lang/smlnj
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 16:38:11 +0000
committerjlam <jlam>2008-03-04 16:38:11 +0000
commit94625269680b5597c061a1e864b87074eff20b47 (patch)
tree3b3e69289dd17a1030bb7365e1cb146dbfea41bd /lang/smlnj
parenta29ce4f7d451f2d5d4a2d323b35045448aa1d767 (diff)
downloadpkgsrc-94625269680b5597c061a1e864b87074eff20b47.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'lang/smlnj')
-rw-r--r--lang/smlnj/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/lang/smlnj/Makefile b/lang/smlnj/Makefile
index 8ed9c257a09..cb60b60d8f0 100644
--- a/lang/smlnj/Makefile
+++ b/lang/smlnj/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2007/01/23 06:08:31 rillig Exp $
+# $NetBSD: Makefile,v 1.18 2008/03/04 16:38:13 jlam Exp $
#
DISTNAME= boot.${BOX}-unix
@@ -31,6 +31,8 @@ COMMENT= Popular functional language from Bell Labs
SML_VERSION= 110.42
+PKG_DESTDIR_SUPPORT= user-destdir
+
# Other mirror sites that generally carry only released versions of SML
# ftp://rodin.stanford.edu/pub/smlnj/release/
# ftp://ftp.cl.cam.ac.uk/MIRRORED/smlnj/release/
@@ -100,8 +102,8 @@ post-build:
# 2. copy the ./bin and ./lib directories across
# 3. install links to executables in $PREFIX/bin
do-install:
- ${INSTALL_DATA_DIR} ${SML_BASE}
- cd ${WRKDIR} && ${PAX} -rw -pam bin lib ${SML_BASE}
- cd ${PREFIX}/bin && ${LN} -sf ../lib/smlnj/bin/* .
+ ${INSTALL_DATA_DIR} ${DESTDIR}${SML_BASE}
+ cd ${WRKDIR} && ${PAX} -rw -pam bin lib ${DESTDIR}${SML_BASE}
+ cd ${DESTDIR}${PREFIX}/bin && ${LN} -sf ../lib/smlnj/bin/* .
.include "../../mk/bsd.pkg.mk"