summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-01-09 11:55:35 +0000
committerobache <obache@pkgsrc.org>2010-01-09 11:55:35 +0000
commitb4b7764d1b4ae5612f7f7a0e8cd1f16ac6ca0918 (patch)
tree1160418e7b6f9b0454d2acbec16add645a8e82da /misc
parent6be1783b9b7fd16d58acc15c770bc24c9f116b48 (diff)
downloadpkgsrc-b4b7764d1b4ae5612f7f7a0e8cd1f16ac6ca0918.tar.gz
Add user-destdir support.
Diffstat (limited to 'misc')
-rw-r--r--misc/kdrill/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/misc/kdrill/Makefile b/misc/kdrill/Makefile
index e8a0cbfceae..25cb24a0f8e 100644
--- a/misc/kdrill/Makefile
+++ b/misc/kdrill/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2008/11/10 17:21:37 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2010/01/09 11:55:35 obache Exp $
#
DISTNAME= kdrill5.11.6
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.bolthole.com/kdrill/
COMMENT= Kanji quiz and japanese dictionary
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= edict-[0-9]*:../../misc/edict
DEPENDS+= kanjidic-[0-9]*:../../misc/kanjidic
@@ -18,18 +20,18 @@ USE_IMAKE= yes
USE_TOOLS+= gzip
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/kdrill
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/kdrill
cd ${WRKSRC}/makedic && \
${INSTALL_DATA} hira.edic hiraplus.edic kata.edic kataplus.edic \
- fullkatahira.edic ${PREFIX}/share/kdrill
+ fullkatahira.edic ${DESTDIR}${PREFIX}/share/kdrill
for f in hira.edic hiraplus.edic kata.edic kataplus.edic \
fullkatahira.edic; do \
- ${GZIP_CMD} -9 ${PREFIX}/share/kdrill/$$f; \
+ ${GZIP_CMD} -9 ${DESTDIR}${PREFIX}/share/kdrill/$$f; \
done
${GZIP_CMD} -c ${PREFIX}/share/edict/edict > \
- ${PREFIX}/share/kdrill/edict.gz
+ ${DESTDIR}${PREFIX}/share/kdrill/edict.gz
${GZIP_CMD} -c ${PREFIX}/share/kanjidic/kanjidic > \
- ${PREFIX}/share/kdrill/kanjidic.gz
+ ${DESTDIR}${PREFIX}/share/kdrill/kanjidic.gz
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXp/buildlink3.mk"