summaryrefslogtreecommitdiff
path: root/misc/xjdic/Makefile
blob: 625c16cb4504c73c6d2037384cdde082a8096b9d (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# $NetBSD: Makefile,v 1.19 2012/10/08 09:57:41 asau Exp $
#

DISTNAME=	xjdic24
PKGNAME=	xjdic-2.4
CATEGORIES=	japanese misc
MASTER_SITES=	http://japanology.arts.kuleuven.ac.be/mirrors/monash/ \
		ftp://ftp.nrc.ca/pub/packages/nihongo/ \
		http://www.bcit-broadcast.com/monash/ \
		ftp://ftp.u-aizu.ac.jp/pub/SciEng/nihongo/ftp.cc.monash.edu.au/ \
		ftp://ftp.funet.fi/pub/culture/japan/mirrors/monash/pub/nihongo/
EXTRACT_SUFX=	.tgz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.csse.monash.edu.au/~jwb/xjdic/
COMMENT=	Japanese dictionary

DEPENDS+=	edict-[0-9]*:../../misc/edict
DEPENDS+=	kanjidic-[0-9]*:../../misc/kanjidic

.include "options.mk"

WRKSRC=		${WRKDIR}
MESSAGE_SUBST+=	PREFIX=${PREFIX}
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

do-install:
	cd ${WRKSRC} ; \
	for i in exjdxgen xjdic_cl xjdic_sa xjdserver xjdxgen ; \
	do \
		${INSTALL_PROGRAM} $$i ${DESTDIR}${PREFIX}/bin ; \
	done
	${MV} ${DESTDIR}${PREFIX}/bin/xjdic_sa ${DESTDIR}${PREFIX}/bin/xjdic
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/xjdic
	${INSTALL_DATA} \
		${WRKSRC}/kanjstroke \
		${WRKSRC}/radicals.tm \
		${WRKSRC}/radkfile \
		${WRKSRC}/romkana.cnv \
		${WRKSRC}/vconj \
		${DESTDIR}${PREFIX}/share/xjdic
	${INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/share/doc/xjdic
	${INSTALL_MAN} \
		${WRKSRC}/xjdic22.WHATSNEW \
		${WRKSRC}/xjdic23.WHATSNEW \
		${WRKSRC}/xjdic24.WHATSNEW \
		${WRKSRC}/xjdic24.inf \
		${WRKSRC}/xjdic24.install \
		${DESTDIR}${PREFIX}/share/doc/xjdic
	${INSTALL_MAN} ${WRKSRC}/xjdic.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	${LN} -s ${PREFIX}/share/edict/edict ${DESTDIR}${PREFIX}/share/xjdic/edict
	${LN} -s ${PREFIX}/share/kanjidic/kanjidic ${DESTDIR}${PREFIX}/share/xjdic/kanjidic
	${DESTDIR}${PREFIX}/bin/xjdxgen ${DESTDIR}${PREFIX}/share/xjdic/edict
	${DESTDIR}${PREFIX}/bin/xjdxgen ${DESTDIR}${PREFIX}/share/xjdic/kanjidic
	${SED} \
		-e 's,/home/jwb/nihongo/dics,${PREFIX}/share/xjdic,' \
		-e '/^kdicfile/s/kanjidic_b/kanjidic/' \
		< ${WRKSRC}/.xjdicrc.skel \
		> ${DESTDIR}${PREFIX}/share/doc/xjdic/.xjdicrc

.include "../../mk/bsd.pkg.mk"