summaryrefslogtreecommitdiff
path: root/textproc/docbook-xml
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-11-03 19:14:25 +0000
committerjoerg <joerg@pkgsrc.org>2006-11-03 19:14:25 +0000
commit5430595a63a9a5ea90cc5dc74531b2f2035ed44c (patch)
treec071b6ec79a1f0bdf8b40d141422cd3d942af75a /textproc/docbook-xml
parentb8b41112bb8cb00d42283f1972ce87819f4eaf31 (diff)
downloadpkgsrc-5430595a63a9a5ea90cc5dc74531b2f2035ed44c.tar.gz
DESTDIR support.
Diffstat (limited to 'textproc/docbook-xml')
-rw-r--r--textproc/docbook-xml/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/textproc/docbook-xml/Makefile b/textproc/docbook-xml/Makefile
index af19fb666b8..01f35b898ab 100644
--- a/textproc/docbook-xml/Makefile
+++ b/textproc/docbook-xml/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2006/10/06 15:13:55 joerg Exp $
+# $NetBSD: Makefile,v 1.32 2006/11/03 19:17:39 joerg Exp $
#
DISTNAME= docbook-xml-4.4
@@ -14,6 +14,7 @@ HOMEPAGE= http://www.oasis-open.org/docbook/
COMMENT= XML DTD designed for computer documentation
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
USE_LANGUAGES= # empty
@@ -47,16 +48,16 @@ PRINT_PLIST_AWK+= /^@dirrm share\/xml\/docbook$$/ \
pre-install:
.for ver in ${VER}
- @[ -d ${DTDDIR}/${ver} ] || ${INSTALL_DATA_DIR} ${DTDDIR}/${ver}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DTDDIR}/${ver}
.endfor
do-install:
.for ver in ${VER}
- @(cd ${DTDDIR}/${ver}; ${UNZIP_CMD} ${DISTDIR}/docbook-xml-${ver}.zip)
- @(cd ${DTDDIR}/${ver}; ${MV} catalog.xml catalog)
+ cd ${DESTDIR}${DTDDIR}/${ver} && ${UNZIP_CMD} ${DISTDIR}/docbook-xml-${ver}.zip
+ cd ${DESTDIR}${DTDDIR}/${ver} && ${MV} catalog.xml catalog
.endfor
- @${SED} -e 's|V4.2|V4.1.2|g' <${DTDDIR}/4.2/catalog \
- >${DTDDIR}/4.2/catalog-4.1.2
+ ${SED} -e 's|V4.2|V4.1.2|g' <${DESTDIR}${DTDDIR}/4.2/catalog \
+ >${DESTDIR}${DTDDIR}/4.2/catalog-4.1.2
.include "../../textproc/xmlcatmgr/catalogs.mk"
.include "../../mk/bsd.pkg.mk"