summaryrefslogtreecommitdiff
path: root/misc/kdrill/Makefile
blob: eee16faf8f4a39722ed86a208024b3d0911a3689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $NetBSD: Makefile,v 1.19 2012/05/03 09:55:30 obache Exp $
#

DISTNAME=	kdrill5.11.6
PKGNAME=	kdrill-5.11.6
PKGREVISION=	5
CATEGORIES=	japanese misc
MASTER_SITES=	http://www.bolthole.com/kdrill/

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

USE_IMAKE=	yes
USE_TOOLS+=	gzip

post-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/kdrill
	cd ${WRKSRC}/makedic && \
	${INSTALL_DATA} hira.edic hiraplus.edic kata.edic kataplus.edic \
		fullkatahira.edic ${DESTDIR}${PREFIX}/share/kdrill
	for f in hira.edic hiraplus.edic kata.edic kataplus.edic \
		fullkatahira.edic; do \
		${GZIP_CMD} -9 ${DESTDIR}${PREFIX}/share/kdrill/$$f; \
	done
	${GZIP_CMD} -c ${PREFIX}/share/edict/edict > \
		${DESTDIR}${PREFIX}/share/kdrill/edict.gz
	${GZIP_CMD} -c ${PREFIX}/share/kanjidic/kanjidic > \
		${DESTDIR}${PREFIX}/share/kdrill/kanjidic.gz

.include "../../x11/libXaw/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"