summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorjoerg <joerg>2010-02-11 19:14:19 +0000
committerjoerg <joerg>2010-02-11 19:14:19 +0000
commit0a83549d726e83d7b9ede3d0e2ba540ad3f0a488 (patch)
tree571eaa14f83a462703e2068a573fd20967d4bf40 /misc
parente37077c82a10a1962046561c94e4e3627133559c (diff)
downloadpkgsrc-0a83549d726e83d7b9ede3d0e2ba540ad3f0a488.tar.gz
DESTDIr support
Diffstat (limited to 'misc')
-rw-r--r--misc/dotfile/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/misc/dotfile/Makefile b/misc/dotfile/Makefile
index ad5e08bcf7b..f403c457e8c 100644
--- a/misc/dotfile/Makefile
+++ b/misc/dotfile/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2008/05/26 02:13:22 joerg Exp $
+# $NetBSD: Makefile,v 1.34 2010/02/11 19:14:19 joerg Exp $
DISTNAME= dotfile-2.4.1
PKGREVISION= 2
@@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.blackie.dk/dotfile/
COMMENT= GUI dotfile generator program to create .config files
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= tk>=8.3.2:../../x11/tk
USE_TOOLS+= pax
@@ -22,9 +24,10 @@ DOTFILE_LANG?= english
GNU_CONFIGURE= yes
NO_BUILD= yes
-MAKE_FLAGS+= mandir=${PREFIX}/${PKGMANDIR}/man1
INSTALLATION_DIRS= bin share/doc/${PKGNAME_NOREV}
+INSTALL_MAKE_FLAGS+= mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 \
+ prefix=${DESTDIR}${PREFIX}
CHECK_INTERPRETER_SKIP= share/${DISTNAME}/*
@@ -32,7 +35,7 @@ pre-install:
rm -f ${WRKSRC}/Generator/makeHelp.orig
post-install:
- cd ${WRKSRC:Q}/Doc && pax -rw . ${PREFIX}/share/doc/${PKGNAME_NOREV}
- ${CHOWN} -R ${ROOT_USER}:${ROOT_GROUP} ${PREFIX}/share/doc/${PKGNAME_NOREV}
+ cd ${WRKSRC:Q}/Doc && pax -rw . ${DESTDIR}${PREFIX}/share/doc/${PKGNAME_NOREV}
+ ${CHOWN} -R ${ROOT_USER}:${ROOT_GROUP} ${DESTDIR}${PREFIX}/share/doc/${PKGNAME_NOREV}
.include "../../mk/bsd.pkg.mk"