pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/simh Add DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4b426afe869b
branches:  trunk
changeset: 537207:4b426afe869b
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Jan 04 21:45:05 2008 +0000

description:
Add DESTDIR support.

diffstat:

 emulators/simh/Makefile |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (44 lines):

diff -r 4bf13cae5604 -r 4b426afe869b emulators/simh/Makefile
--- a/emulators/simh/Makefile   Fri Jan 04 21:37:07 2008 +0000
+++ b/emulators/simh/Makefile   Fri Jan 04 21:45:05 2008 +0000
@@ -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 @@
 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 @@
 .endif
 .endif
 
-INSTALLATION_DIRS=     bin
+INSTALLATION_DIRS=     bin share/simh share/doc/simh
 
 post-extract:
        ${MKDIR} ${WRKSRC}/BIN
@@ -34,13 +36,11 @@
 
 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"



Home | Main Index | Thread Index | Old Index