diff options
author | joerg <joerg@pkgsrc.org> | 2008-01-04 21:45:05 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-01-04 21:45:05 +0000 |
commit | a9308383e58c8286e25b160a5e22e257390120ce (patch) | |
tree | baa2f8f5e5b4779e7f41959b184d7d8664d52bb8 /emulators | |
parent | 810119313e9b3f5631b8fd1ec41463c1f43a16a5 (diff) | |
download | pkgsrc-a9308383e58c8286e25b160a5e22e257390120ce.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/simh/Makefile | 14 |
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" |