summaryrefslogtreecommitdiff
path: root/devel/mkcmd
diff options
context:
space:
mode:
authorepg <epg>2008-08-19 23:41:05 +0000
committerepg <epg>2008-08-19 23:41:05 +0000
commit5babbb61f859ebe3aee886b5875284e8cabf5a62 (patch)
tree60db186d10c53aacb75e2a6661dcfd05b1e2e8bb /devel/mkcmd
parentd00ed361aa0f63eab11c1bf9a0e2f65b48dc9b8f (diff)
downloadpkgsrc-5babbb61f859ebe3aee886b5875284e8cabf5a62.tar.gz
Support user-destdir.
Diffstat (limited to 'devel/mkcmd')
-rw-r--r--devel/mkcmd/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/devel/mkcmd/Makefile b/devel/mkcmd/Makefile
index 4e2b93e608b..61d51a62639 100644
--- a/devel/mkcmd/Makefile
+++ b/devel/mkcmd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2008/02/04 19:52:54 tnn Exp $
+# $NetBSD: Makefile,v 1.10 2008/08/19 23:41:05 epg Exp $
#
DISTNAME= mkcmd-8.14
@@ -10,10 +10,11 @@ EXTRACT_SUFX= .tgz
MAINTAINER= epg@NetBSD.org
COMMENT= Command-line parser and manual page generator
-USE_TOOLS+= m4
-
+PKG_DESTDIR_SUPPORT= user-destdir
PKG_INSTALLATION_TYPES= overwrite pkgviews
+USE_TOOLS+= m4
+
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
REPLACE_INTERPRETER+= mkcmd
@@ -33,12 +34,12 @@ do-build:
do-install:
.for _mkcmd_dir in bin/mkcmd lib/mkcmd
cd ${WRKSRC}/${_mkcmd_dir} && HOSTTYPE= ${SH} ${FILESDIR}/makeme \
- ROOT=${PREFIX} BIN=${PREFIX}/bin LIB=${PREFIX}/lib/mkcmd \
+ ROOT=${DESTDIR}${PREFIX} BIN=${DESTDIR}${PREFIX}/bin LIB=${DESTDIR}${PREFIX}/lib/mkcmd \
install
.endfor
${INSTALL_MAN} ${WRKSRC}/bin/mkcmd/mkcmd.man \
- ${PREFIX}/${PKGMANDIR}/man1/mkcmd.1
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mkcmd.1
${INSTALL_MAN} ${WRKSRC}/lib/mkcmd/mkcmd.man \
- ${PREFIX}/${PKGMANDIR}/man5/mkcmd.5
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/mkcmd.5
.include "../../mk/bsd.pkg.mk"