summaryrefslogtreecommitdiffstats
path: root/japanese/kdrill/Makefile
blob: 1585c882d2d62d6d09a3426fb5018a9959385052 (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
# Created by: Seth Kingsley <sethk@osd.bsdi.com>
# $FreeBSD$

PORTNAME=	kdrill
PORTVERSION=	6.4
PORTREVISION=	2
CATEGORIES=	japanese
MASTER_SITES=	http://www.bolthole.com/kdrill/
DISTNAME=	${PORTNAME}${PORTVERSION}

MAINTAINER=	sethk@meowfishies.com
COMMENT=	Program to quiz you on the meanings of Kanji

# Explictly state HTML'ized man pages in packing list since not all are
# generated from imake.
XFREE86_HTML_MAN=no
MAN1=		kdrill.1 makedic.1 makeedict.1

USES=		imake
MANCOMPRESSED=	yes
USE_XORG=	ice sm x11 xaw xext xmu xpm xt

RUN_DEPENDS+=	xjdic:${PORTSDIR}/japanese/edict

NO_STAGE=	yes
post-build:
	@cd ${WRKSRC}/makedic && ${MAKE} ${MAKE_ENV} clean all

DATADIR=	${PREFIX}/share/dict/kdrill
post-install:
	${INSTALL_PROGRAM} ${WRKSRC}/makedic/makedic ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/makedic/makeedict ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/makedic/makedic.1 \
	    ${PREFIX}/man/man1
	${GZIP_CMD} ${PREFIX}/man/man1/makedic.1
	${INSTALL_MAN} ${WRKSRC}/makedic/makeedict.1 \
	    ${PREFIX}/man/man1
	${GZIP_CMD} ${PREFIX}/man/man1/makeedict.1
	${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/makedic/fullkatahira.edic ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/makedic/hira.edic ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/makedic/hiraplus.edic ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/makedic/kata.edic ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/makedic/kataplus.edic ${DATADIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud