summaryrefslogtreecommitdiff
path: root/devel/tpasm/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 17:45:33 +0000
committerjlam <jlam>2008-03-03 17:45:33 +0000
commit7a1142123798f48c48fc2d1fe38690a6b94d1df7 (patch)
tree620d08cc8bf79f9bacb7746632192670c7d6350d /devel/tpasm/Makefile
parente629efdae96bb93a089e74409a36149a86e10f81 (diff)
downloadpkgsrc-7a1142123798f48c48fc2d1fe38690a6b94d1df7.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/tpasm/Makefile')
-rw-r--r--devel/tpasm/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/devel/tpasm/Makefile b/devel/tpasm/Makefile
index 1336e35324d..0f152224963 100644
--- a/devel/tpasm/Makefile
+++ b/devel/tpasm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2006/06/06 15:09:17 joerg Exp $
+# $NetBSD: Makefile,v 1.17 2008/03/03 17:45:38 jlam Exp $
#
DISTNAME= tpasm1.0r
@@ -12,6 +12,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.sqt.com/
COMMENT= Assembler for 6805, 68HC11, 6502, Surplus, 8051, Z80, PIC, and AVR
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/tpasm
USE_LANGUAGES= c++
USE_TOOLS+= gmake
@@ -19,10 +21,10 @@ USE_TOOLS+= gmake
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/libdata/tpasm
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tpasm
- ${INSTALL_PROGRAM} ${WRKSRC}/tpasm ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/include/* ${PREFIX}/libdata/tpasm
- ${INSTALL_DATA} ${WRKSRC}/MANUAL.TXT ${PREFIX}/share/doc/tpasm
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/libdata/tpasm
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/tpasm
+ ${INSTALL_PROGRAM} ${WRKSRC}/tpasm ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/include/* ${DESTDIR}${PREFIX}/libdata/tpasm
+ ${INSTALL_DATA} ${WRKSRC}/MANUAL.TXT ${DESTDIR}${PREFIX}/share/doc/tpasm
.include "../../mk/bsd.pkg.mk"