summaryrefslogtreecommitdiff
path: root/lang/mit-scheme-bin
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/mit-scheme-bin
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/mit-scheme-bin')
-rw-r--r--lang/mit-scheme-bin/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/lang/mit-scheme-bin/Makefile b/lang/mit-scheme-bin/Makefile
index bcfa85b8925..9fa260069c5 100644
--- a/lang/mit-scheme-bin/Makefile
+++ b/lang/mit-scheme-bin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2007/07/29 05:19:27 jlam Exp $
+# $NetBSD: Makefile,v 1.5 2008/03/04 16:38:12 jlam Exp $
#
DISTNAME= mit-scheme-7.7.1-ix86-gnu-linux
@@ -13,6 +13,8 @@ COMMENT= MIT/GNU Scheme (Linux binary)
EMUL_PLATFORMS= linux-i386
EMUL_MODULES.linux= base
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}
INSTALLATION_DIRS= bin libexec
@@ -22,12 +24,12 @@ do-build:
> ${WRKSRC}/bchscheme
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/bchscheme ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/scheme ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/bchscheme ${PREFIX}/libexec
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/scheme ${PREFIX}/libexec
- ${INSTALL_DATA_DIR} ${PREFIX}/lib/mit-scheme
- cd ${WRKSRC}/lib && ${PAX} -rw mit-scheme ${PREFIX}/lib
- ${RMDIR} ${PREFIX}/lib/mit-scheme/lib
+ ${INSTALL_SCRIPT} ${WRKSRC}/bchscheme ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/scheme ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/bchscheme ${DESTDIR}${PREFIX}/libexec
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/scheme ${DESTDIR}${PREFIX}/libexec
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/mit-scheme
+ cd ${WRKSRC}/lib && ${PAX} -rw mit-scheme ${DESTDIR}${PREFIX}/lib
+ ${RMDIR} ${DESTDIR}${PREFIX}/lib/mit-scheme/lib
.include "../../mk/bsd.pkg.mk"