diff options
author | jlam <jlam> | 2008-03-04 16:38:11 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-03-04 16:38:11 +0000 |
commit | 983300b3f559a9ed30543fe7f65213acf187c0bb (patch) | |
tree | 3b3e69289dd17a1030bb7365e1cb146dbfea41bd /lang/smlnj | |
parent | 59cb8affaf92e8a5b9f11529f3cfcdc95b4585c3 (diff) | |
download | pkgsrc-983300b3f559a9ed30543fe7f65213acf187c0bb.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/Makefile | 10 |
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" |