summaryrefslogtreecommitdiff
path: root/comms/gkermit/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 05:33:32 +0000
committerjlam <jlam>2008-03-03 05:33:32 +0000
commite86a3ba39061980160972e0fd2948b67acb7f5af (patch)
tree8887c0f8ce1a301b21789abae5051e7556970188 /comms/gkermit/Makefile
parentdd20eca0e374727250c7dcb3c23ece6114da5aa3 (diff)
downloadpkgsrc-e86a3ba39061980160972e0fd2948b67acb7f5af.tar.gz
Mechanical changes to add full DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'comms/gkermit/Makefile')
-rw-r--r--comms/gkermit/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/comms/gkermit/Makefile b/comms/gkermit/Makefile
index 55ac079c78f..86acb849ca8 100644
--- a/comms/gkermit/Makefile
+++ b/comms/gkermit/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2007/12/12 20:42:31 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2008/03/03 05:33:32 jlam Exp $
#
DISTNAME= gku100
@@ -12,6 +12,7 @@ HOMEPAGE= http://www.columbia.edu/kermit/gkermit.html
COMMENT= Minimal implementation of the ``kermit'' protocol (GPL'd)
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
BUILD_TARGET= posix
@@ -25,9 +26,10 @@ CFLAGS+= -DERRNO_H
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/gkermit ${PREFIX}/bin/gkermit; \
- ${INSTALL_MAN} ${WRKSRC}/gkermit.nr ${PREFIX}/${PKGMANDIR}/man1/gkermit.1; \
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gkermit
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/gkermit
+ ${INSTALL_PROGRAM} ${WRKSRC}/gkermit ${DESTDIR}${PREFIX}/bin/gkermit
+ ${INSTALL_MAN} ${WRKSRC}/gkermit.nr \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gkermit.1
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/gkermit
+ ${INSTALL_DATA} ${DESTDIR}${WRKSRC}/README ${PREFIX}/share/doc/gkermit
.include "../../mk/bsd.pkg.mk"