summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorjoerg <joerg>2009-07-08 16:40:08 +0000
committerjoerg <joerg>2009-07-08 16:40:08 +0000
commitc00b06b182f20c21872aa9f550baeddd9d36cd49 (patch)
tree166f0fa2f72807c7dcc13eb93140e3debebd2b90 /emulators
parent2c16f68b5b455451a97f87bd4a591fb2994d5144 (diff)
downloadpkgsrc-c00b06b182f20c21872aa9f550baeddd9d36cd49.tar.gz
user-destdir support
Diffstat (limited to 'emulators')
-rw-r--r--emulators/xtrs/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/emulators/xtrs/Makefile b/emulators/xtrs/Makefile
index a71292dc116..02b88e0163e 100644
--- a/emulators/xtrs/Makefile
+++ b/emulators/xtrs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2009/05/20 00:58:15 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2009/07/08 16:46:14 joerg Exp $
#
DISTNAME= xtrs-4.9
@@ -10,6 +10,7 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= ${MASTER_SITES}
COMMENT= TRS-80 Model I/III/4 Emulator for Unix
+PKG_DESTDIR_SUPPORT= user-destdir
BUILD_TARGET= default
@@ -22,11 +23,13 @@ SUBST_SED.mf= -e 's|/usr/local|${PREFIX}|g' \
-e 's|^\(LDFLAGS = \)-L/usr/X11R6/lib|\1-Wl,-R${X11BASE}/lib -L${X11BASE}/lib|g' \
-e 's|/share/man|/man|g'
+INSTALL_MAKE_FLAGS+= BINDIR=${DESTDIR}${PREFIX}/bin \
+ MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}
+INSTALLATION_DIRS= bin lib/xtrs ${PKGMANDIR}/man1 share/doc/xtrs
+
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/lib/xtrs
- ${INSTALL_DATA} ${WRKSRC}/xtrsrom4p.hex ${PREFIX}/lib/xtrs/romimage.m4p
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xtrs
- ${INSTALL_DATA} ${WRKSRC}/xtrsrom4p.README ${PREFIX}/share/doc/xtrs
+ ${INSTALL_DATA} ${WRKSRC}/xtrsrom4p.hex ${DESTDIR}${PREFIX}/lib/xtrs/romimage.m4p
+ ${INSTALL_DATA} ${WRKSRC}/xtrsrom4p.README ${DESTDIR}${PREFIX}/share/doc/xtrs
# The sources assume <malloc.h> exists. Create a fake one for platforms
# that don't have it.