summaryrefslogtreecommitdiff
path: root/devel/picprg/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/picprg/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/picprg/Makefile')
-rw-r--r--devel/picprg/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/devel/picprg/Makefile b/devel/picprg/Makefile
index 84d6641986a..8661df79f2d 100644
--- a/devel/picprg/Makefile
+++ b/devel/picprg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2007/03/26 09:31:10 dsainty Exp $
+# $NetBSD: Makefile,v 1.7 2008/03/03 17:45:36 jlam Exp $
#
PKGNAME= picprg-2.3d
@@ -14,15 +14,20 @@ COMMENT= Parallel port PIC programmer
# The programmer makes direct I/O bus accesses via the i386 in/out
# instructions. The program has been patches to work on NetBSD only,
# via the i386_set_ioperm() interface.
+#
ONLY_FOR_PLATFORM= NetBSD-*-i386
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= gmake
+INSTALLATION_DIRS= bin
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/picprg ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/picprg
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/picprg
- ${INSTALL_DATA} ${WRKSRC}/README.BAJ ${PREFIX}/share/doc/picprg
+ ${INSTALL_PROGRAM} ${WRKSRC}/picprg ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/picprg
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/picprg
+ ${INSTALL_DATA} ${WRKSRC}/README.BAJ ${DESTDIR}${PREFIX}/share/doc/picprg
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"