summaryrefslogtreecommitdiff
path: root/lang/tk-expect
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 16:38:11 +0000
committerjlam <jlam>2008-03-04 16:38:11 +0000
commit94625269680b5597c061a1e864b87074eff20b47 (patch)
tree3b3e69289dd17a1030bb7365e1cb146dbfea41bd /lang/tk-expect
parenta29ce4f7d451f2d5d4a2d323b35045448aa1d767 (diff)
downloadpkgsrc-94625269680b5597c061a1e864b87074eff20b47.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'lang/tk-expect')
-rw-r--r--lang/tk-expect/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/lang/tk-expect/Makefile b/lang/tk-expect/Makefile
index 2843e734293..056aa728e79 100644
--- a/lang/tk-expect/Makefile
+++ b/lang/tk-expect/Makefile
@@ -1,4 +1,6 @@
-# $NetBSD: Makefile,v 1.22 2007/02/22 19:26:40 wiz Exp $
+# $NetBSD: Makefile,v 1.23 2008/03/04 16:38:13 jlam Exp $
+
+PKG_DESTDIR_SUPPORT= user-destdir
.include "../../lang/tcl-expect/Makefile.common"
@@ -20,8 +22,9 @@ CONFIGURE_ARGS+= --with-tkinclude=${PREFIX}/include/tk
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/expectk ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/expectk.man ${PREFIX}/${PKGMANDIR}/man1/expectk.1
+ ${INSTALL_PROGRAM} ${WRKSRC}/expectk ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/expectk.man \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/expectk.1
.include "../../x11/tk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"