summaryrefslogtreecommitdiff
path: root/x11/tk-BWidget/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg>2009-07-07 18:21:47 +0000
committerjoerg <joerg>2009-07-07 18:21:47 +0000
commitb16461f701c1328a966f6c21d532ce5971fc3091 (patch)
tree001596c8d824751dd151f3e0b729ae9cf3a5f2ab /x11/tk-BWidget/Makefile
parenteb8bc00fb34175ef87b346a9af8cd9be9bcf07ee (diff)
downloadpkgsrc-b16461f701c1328a966f6c21d532ce5971fc3091.tar.gz
user-destdir support
Diffstat (limited to 'x11/tk-BWidget/Makefile')
-rw-r--r--x11/tk-BWidget/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/x11/tk-BWidget/Makefile b/x11/tk-BWidget/Makefile
index 1912a612934..0e7433de893 100644
--- a/x11/tk-BWidget/Makefile
+++ b/x11/tk-BWidget/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2007/05/21 09:58:23 joerg Exp $
+# $NetBSD: Makefile,v 1.7 2009/07/07 18:21:47 joerg Exp $
DISTNAME= BWidget-1.7.0
PKGNAME= tk-${DISTNAME}
@@ -14,6 +14,7 @@ DEPENDS+= tcl>=8.4:../../lang/tcl
DEPENDS+= tk>=8.4:../../x11/tk
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
NO_EXTRACT= YES
NO_BUILD= YES
@@ -21,9 +22,10 @@ NO_CONFIGURE= YES
USE_TOOLS+= gtar
+INSTALLATION_DIRS= lib/tcl
+
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/lib/tcl
- cd ${PREFIX}/lib/tcl && ${GTAR} zxpf ${DISTDIR}/${DISTFILES}
- ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/tcl/${DISTNAME}
+ cd ${DESTDIR}${PREFIX}/lib/tcl && ${GTAR} zxpf ${DISTDIR}/${DISTFILES}
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${PREFIX}/lib/tcl/${DISTNAME}
.include "../../mk/bsd.pkg.mk"