aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/chasen/Makefile
blob: 09226b794b3bdf39ce3374068c3d206b1ee5c91b (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
# New ports collection makefile for:    chasen
# Date created:     21 October 1998
# Whom:         kuriyama
#
# $NetBSD: Makefile,v 1.2 1999/06/07 09:54:39 sakamoto Exp $
# $FreeBSD$
#

PORTNAME=   chasen
PORTVERSION=    2.02
PORTREVISION=   3
CATEGORIES= japanese
MASTER_SITES=   ftp://ftp.aist-nara.ac.jp/pub/lab/nlp/tools/chasen/
DISTNAME=   ${PORTNAME}-sys${PORTVERSION}-ipadic2.1

MAINTAINER= knu@FreeBSD.org

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKE_ARGS=  NOPROFILE=true
INSTALLS_SHLIB= yes

DOCS_EN=    README doc/manual.pdf doc/manual.tex
DOCS_JA=    CHANGES README.ja doc/manual-j.pdf doc/manual-j.tex

post-patch:
    ${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/lib/Makefile

post-build:
    @${ECHO_MSG} "Making dictionaries"
    @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} dic

post-install:
    ${MKDIR} ${PREFIX}/include/chasen
    @cd ${WRKSRC}/lib; ${SETENV} ${MAKE_ENV} ${MAKE} install
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/doc/chasen/ja
.for f in ${DOCS_EN}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/chasen/
.endfor
.for f in ${DOCS_JA}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/chasen/ja/
.endfor
.endif

.include <bsd.port.mk>