summaryrefslogtreecommitdiff
path: root/editors/ve
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 18:25:52 +0000
committerjlam <jlam>2008-03-03 18:25:52 +0000
commit59c88b4d9c1d6bc53da985e22afe105e701cdcac (patch)
tree94991d2182e36c43f4a6dac0f35a6023230a4d45 /editors/ve
parent2a207edc45664cfe289384c116ca46b3eab35e13 (diff)
downloadpkgsrc-59c88b4d9c1d6bc53da985e22afe105e701cdcac.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'editors/ve')
-rw-r--r--editors/ve/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/editors/ve/Makefile b/editors/ve/Makefile
index 65122da6bc7..235b183951c 100644
--- a/editors/ve/Makefile
+++ b/editors/ve/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2005/06/16 06:57:50 jlam Exp $
+# $NetBSD: Makefile,v 1.4 2008/03/03 18:25:53 jlam Exp $
DISTNAME= ve-1.0
CATEGORIES= editors
@@ -9,6 +9,8 @@ EXTRACT_SUFX= .tgz
MAINTAINER= rxg@NetBSD.org
COMMENT= NTHU-CS Maple BBS 2.36 BBS-like editor
+PKG_DESTDIR_SUPPORT= user-destdir
+
INSTALLATION_DIRS= bin
post-patch:
@@ -16,8 +18,8 @@ post-patch:
${MV} ${WRKSRC}/edit.c.done ${WRKSRC}/edit.c
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/ve ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/ve
- ${INSTALL_DATA} ${WRKSRC}/ve.hlp ${PREFIX}/share/ve
+ ${INSTALL_PROGRAM} ${WRKSRC}/ve ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/ve
+ ${INSTALL_DATA} ${WRKSRC}/ve.hlp ${DESTDIR}${PREFIX}/share/ve
.include "../../mk/bsd.pkg.mk"