summaryrefslogtreecommitdiffstats
path: root/japanese/drpl/Makefile
blob: 52c1f107185ba787dc0e17011dab8b70f1efc938 (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
# New ports collection makefile for:   drpl
# Date created:                18 May 2002
# Whom:                        Kimura Fuyuki <fuyuki@mj.0038.net>
#
# $FreeBSD$
#

PORTNAME=	drpl
PORTVERSION=	1.04
CATEGORIES=	japanese textproc
MASTER_SITES=	http://www.yk.rim.or.jp/~tomoto/archives/drpl/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Replaces words in a Japanese text using dictionaries

USE_PERL5=	yes
SCRIPTS=	drpl revdic

post-patch:
.for i in ${SCRIPTS}
	${PERL} -pi -e 's,/usr/local/bin/perl,${PERL},' ${WRKSRC}/${i}
.endfor

do-build:
.for i in maruyaex osaka yarumaex
	${PERL} ${WRKSRC}/drpl -u -D ${WRKSRC}/dic/${i}.dic /dev/null
.endfor

do-install:
	cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SCRIPTS} ${PREFIX}/bin
	${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/dic/* ${DATADIR}
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	cd ${WRKSRC}; ${INSTALL_DATA} *.TXT *.man misc/*.htm ${DOCSDIR}
.endif

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