aboutsummaryrefslogtreecommitdiff
path: root/japanese/edict-fpw/Makefile
blob: 504beebbf17cf9057ffe237c8e2f83c21ab428d2 (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
# New ports collection makefile for:	EDICT - JIS X 4081 format version
# Version required:	1.1
# Date created:        	00/01/14
# Whom:			Satoshi Taoka <taoka@FreeBSD.org>
#
# $FreeBSD$
#

DISTNAME=	edict-fpw1.1-src
PKGNAME=	ja-edict-fpw-1.1
CATEGORIES=	japanese
MASTER_SITES=	ftp://ftp.sra.co.jp/pub/misc/freepwing/fpwbooks/edict/ \
		ftp://ftp.cc.monash.edu.au/pub/nihongo/ \
		ftp://ftp.cdrom.com/pub/japanese/monash/ \
		ftp://ftp.sedl.org/pub/mirrors/nihongo/ \
		ftp://ftp.u-aizu.ac.jp/pub/SciEng/nihongo/ftp.cc.monash.edu.au/
DISTFILES=	edict-fpw1.1-src.tar.gz edict.gz edict.doc

MAINTAINER=    	taoka@FreeBSD.org

BUILD_DEPENDS=	fpwmake:${PORTSDIR}/japanese/freepwing \
		catdump:${PORTSDIR}/japanese/epwutil

WRKSRC=		${WRKDIR}/edict-fpw1.1
EXTRACT_ONLY=	edict-fpw1.1-src.tar.gz

post-extract:
	${MKDIR} ${WRKSRC}/source
	${CP} -f ${DISTDIR}/edict.gz ${WRKSRC}/source
	${CP} -f ${DISTDIR}/edict.doc ${WRKSRC}/source
	${GZIP_CMD} -d ${WRKSRC}/source/edict.gz

do-build:
		cd ${WRKSRC}; fpwmake > /dev/null; \
		fpwmake catalogs

do-install:
	${MKDIR} ${PREFIX}/share/dict/edict-fpw/edict/data
	${INSTALL_DATA} ${WRKSRC}/honmon ${PREFIX}/share/dict/edict-fpw/edict/data
	${INSTALL_DATA} ${WRKSRC}/catalogs ${PREFIX}/share/dict/edict-fpw
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/edict-fpw
	${INSTALL_DATA} ${WRKSRC}/source/edict.doc ${PREFIX}/share/doc/edict-fpw
	${INSTALL_DATA} ${WRKSRC}/README.pkg ${PREFIX}/share/doc/edict-fpw
.endif

.include <bsd.port.mk>