summaryrefslogtreecommitdiff
path: root/japanese/srd-fpw/Makefile
blob: 6d38741350ecc73a7ec0f26f9ade5a5c252d8766 (plain) (blame)
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
# New ports collection makefile for:	srd - JIS X 4081 format version
# Date created:        	00/06/14
# Whom:			Satoshi Taoka <taoka@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	srd-fpw
PORTVERSION=	1.1.5
CATEGORIES=	japanese
MASTER_SITES=	http://openlab.ring.gr.jp/edict/fpw/dist/srd/
DISTNAME=	srd-fpw${PORTVERSION}-src

MAINTAINER=	taoka@FreeBSD.org
COMMENT=	A English - Japanese Dictionary "Random House" (EPWING V1 format)

BUILD_DEPENDS=	fpwmake:${PORTSDIR}/japanese/freepwing \
		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Jcode.pm:${PORTSDIR}/japanese/p5-Jcode

IS_INTERACTIVE= YES
RESTRICTED=	"The original dictionary is not free"
WRKSRC=		${WRKDIR}/srd-fpw${PORTVERSION}
DICT_PATH?=	/cdrom

post-extract:
	@if [ ! -f ${DICT_PATH}/SRD.INI ]; then \
	  ${ECHO} "###################################################"; \
	  ${ECHO} "Specify a mount point for Random House's CD-ROM"; \
	  ${ECHO} "or a directory which you copied it from the CD-ROM".; \
	  ${ECHO} "And excecute the following command again:"; \
	  ${ECHO} "  make DICT_PATH=${DICT_PATH}"; \
	  ${ECHO} "###################################################"; \
	  ${FALSE}; \
	fi

do-build:
#	cd ${WRKSRC}; fpwmake SRCDIR=${DICT_PATH} > /dev/null; \
	cd ${WRKSRC}; \
	fpwmake SRCDIR=${DICT_PATH} png; \
	fpwmake SRCDIR=${DICT_PATH}; \
	fpwmake catalogs

do-install:
	${MKDIR} ${PREFIX}/share/dict/srd-fpw/srd-fpw/data
	${MKDIR} ${PREFIX}/share/dict/srd-fpw/srd-fpw/gaiji
	${INSTALL_DATA} ${WRKSRC}/honmon \
		${PREFIX}/share/dict/srd-fpw/srd-fpw/data
	${INSTALL_DATA} ${WRKSRC}/gai16f \
		${PREFIX}/share/dict/srd-fpw/srd-fpw/gaiji
	${INSTALL_DATA} ${WRKSRC}/gai16h \
		${PREFIX}/share/dict/srd-fpw/srd-fpw/gaiji
	${INSTALL_DATA} ${WRKSRC}/catalogs ${PREFIX}/share/dict/srd-fpw
	${INSTALL_DATA} ${WRKSRC}/img.dat ${PREFIX}/share/dict/srd-fpw
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/srd-fpw
.for file in AUTHORS COPYING ChangeLog GAIJI.TXT NEWS README.PKG README.TXT TOBEDONE
	${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/srd-fpw
.endfor
.endif

.include <bsd.port.mk>