summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorjoerg <joerg>2008-01-04 21:45:05 +0000
committerjoerg <joerg>2008-01-04 21:45:05 +0000
commit97a8fb6c61b697fb3583eaeed1fb88c33736d0c4 (patch)
treebaa2f8f5e5b4779e7f41959b184d7d8664d52bb8 /emulators
parent14e93f05ffceb9b9313b259bfcc14576cd02c5fa (diff)
downloadpkgsrc-97a8fb6c61b697fb3583eaeed1fb88c33736d0c4.tar.gz
Add DESTDIR support.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/simh/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/emulators/simh/Makefile b/emulators/simh/Makefile
index 72084fd5261..34d51e63f46 100644
--- a/emulators/simh/Makefile
+++ b/emulators/simh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2006/04/06 06:21:59 reed Exp $
+# $NetBSD: Makefile,v 1.26 2008/01/04 21:45:05 joerg Exp $
#
DISTNAME= simhv33-0
@@ -13,6 +13,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://simh.trailing-edge.com/
COMMENT= Bob Supnik's historical computer simulator
+PKG_DESTDIR_SUPPORT= user-destdir
+
BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.6
EXTRACT_OPTS_ZIP= -aoq
@@ -26,7 +28,7 @@ CFLAGS:= ${CFLAGS:S/-O2//}
.endif
.endif
-INSTALLATION_DIRS= bin
+INSTALLATION_DIRS= bin share/simh share/doc/simh
post-extract:
${MKDIR} ${WRKSRC}/BIN
@@ -34,13 +36,11 @@ post-extract:
do-install:
(cd ${WRKSRC}/BIN && for BIN in *; do \
- ${INSTALL_PROGRAM} $$BIN ${PREFIX}/bin/simh-$$BIN; \
+ ${INSTALL_PROGRAM} $$BIN ${DESTDIR}${PREFIX}/bin/simh-$$BIN; \
done)
- ${INSTALL_DATA_DIR} ${PREFIX}/share/simh
- ${INSTALL_DATA} ${WRKSRC}/VAX/ka655.bin ${PREFIX}/share/simh
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/simh
+ ${INSTALL_DATA} ${WRKSRC}/VAX/ka655.bin ${DESTDIR}${PREFIX}/share/simh
(cd ${WRKSRC} && for TXT in *.txt */*.txt; do \
- ${INSTALL_DATA} $$TXT ${PREFIX}/share/doc/simh; \
+ ${INSTALL_DATA} $$TXT ${DESTDIR}${PREFIX}/share/doc/simh; \
done)
.include "../../net/libpcap/buildlink3.mk"