summaryrefslogtreecommitdiff
path: root/misc/JMdict/Makefile
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/JMdict/Makefile
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/JMdict/Makefile')
-rw-r--r--misc/JMdict/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/misc/JMdict/Makefile b/misc/JMdict/Makefile
index b036c87c775..27d367d29cb 100644
--- a/misc/JMdict/Makefile
+++ b/misc/JMdict/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2007/07/08 09:43:48 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2008/03/04 19:21:10 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/edict.html
COMMENT= Japanese-Multilingual electronic dictionary
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}
DIST_SUBDIR= ${PKGNAME_NOREV}
EXTRACT_ONLY= JMdict.gz
@@ -25,14 +27,14 @@ EXTRACT_ONLY= JMdict.gz
NO_BUILD= yes
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/JMdict
- ${INSTALL_DATA} ${WRKSRC}/JMdict ${PREFIX}/share/JMdict
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/JMdict
+ ${INSTALL_DATA} ${WRKSRC}/JMdict ${DESTDIR}${PREFIX}/share/JMdict
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/JMdict.dtd \
- ${PREFIX}/share/JMdict
+ ${DESTDIR}${PREFIX}/share/JMdict
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/JMdict.gz \
- ${PREFIX}/share/JMdict
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/JMdict
+ ${DESTDIR}${PREFIX}/share/JMdict
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/JMdict
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/jmdict_proj_desc.html \
- ${PREFIX}/share/doc/JMdict
+ ${DESTDIR}${PREFIX}/share/doc/JMdict
.include "../../mk/bsd.pkg.mk"