summaryrefslogtreecommitdiff
path: root/misc/kanjidic2
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 19:21:10 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 19:21:10 +0000
commit39843c2c61acd3e8f1b7d0fa6eb0f76884067d10 (patch)
tree49bcc2e4ee778e69c05972f13c0e319fdf272a66 /misc/kanjidic2
parent0523c1825d9b781d6f10c2ef70daf0a164e0f142 (diff)
downloadpkgsrc-39843c2c61acd3e8f1b7d0fa6eb0f76884067d10.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'misc/kanjidic2')
-rw-r--r--misc/kanjidic2/Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/misc/kanjidic2/Makefile b/misc/kanjidic2/Makefile
index 4601538d8b7..b5cf7e9a535 100644
--- a/misc/kanjidic2/Makefile
+++ b/misc/kanjidic2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2007/07/08 09:43:49 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2008/03/04 19:21:11 jlam Exp $
#
# Update instructions:
# . bump PKGNAME to today's date
@@ -18,6 +18,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.csse.monash.edu.au/~jwb/kanjidic.html
COMMENT= Japanese Kanji information
+PKG_DESTDIR_SUPPORT= user-destdir
+
DIST_SUBDIR= ${PKGNAME_NOREV}
EXTRACT_ONLY= kanjidic2.xml.gz kanjidic2_dtd.gz kanjidic2_xsd.gz
WRKSRC= ${WRKDIR}
@@ -25,16 +27,17 @@ WRKSRC= ${WRKDIR}
NO_BUILD= yes
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/kanjidic2
- ${INSTALL_DATA} ${WRKSRC}/kanjidic2.xml ${PREFIX}/share/kanjidic2/
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/kanjidic2
+ ${INSTALL_DATA} ${WRKSRC}/kanjidic2.xml \
+ ${DESTDIR}${PREFIX}/share/kanjidic2/
${INSTALL_DATA} ${WRKSRC}/kanjidic2_dtd \
- ${PREFIX}/share/kanjidic2/kanjidic2.dtd
+ ${DESTDIR}${PREFIX}/share/kanjidic2/kanjidic2.dtd
${INSTALL_DATA} ${WRKSRC}/kanjidic2_xsd \
- ${PREFIX}/share/kanjidic2/kanjidic2.xsd
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/kanjidic2
+ ${DESTDIR}${PREFIX}/share/kanjidic2/kanjidic2.xsd
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/kanjidic2
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/kanjidic_doc.html \
- ${PREFIX}/share/doc/kanjidic2
+ ${DESTDIR}${PREFIX}/share/doc/kanjidic2
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/kanjidic2_ov.html \
- ${PREFIX}/share/doc/kanjidic2
+ ${DESTDIR}${PREFIX}/share/doc/kanjidic2
.include "../../mk/bsd.pkg.mk"