aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/mecab/Makefile
blob: 35b378b6aa4b6ac734f5718cb1cf1af57fc6ceca (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
# New ports collection makefile for:    mecab
# Date created:     2 April 2003
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   ${MECAB_PORTNAME}
PORTVERSION=    ${MECAB_PORTVERSION}
PORTREVISION=   1
CATEGORIES= japanese textproc
MASTER_SITES=   http://cl.aist-nara.ac.jp/~taku-ku/software/mecab/src/ \
        http://chasen.aist-nara.ac.jp/stable/ipadic/:ipadic
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} \
        ${IPADIC_DISTNAME}${EXTRACT_SUFX}:ipadic

MAINTAINER= knu@FreeBSD.org
COMMENT=    Yet Another Part-of-Speech and Morphological Analyzer

IPADIC_DISTNAME=    ipadic-2.5.1

USE_PERL5_BUILD=    yes

USE_LIBTOOL_VER=13
INSTALLS_SHLIB= yes

.include "${.CURDIR}/Makefile.common"

MAN1=       mecab.1

EXAMPLES=   example/*
DOCS=       AUTHORS README doc/*.html doc/*.css

.include <bsd.port.pre.mk>

.if ${ARCH} != "i386"
BROKEN=     "Does not compile on !i386"
.endif

post-extract:
    ${LN} -s ${WRKDIR}/${IPADIC_DISTNAME} ${WRKSRC}/dic/

post-install:
    ${RM} -f ${PREFIX}/lib/libmecab.la
.if !defined(NOPORTDOCS)
    ${MKDIR} ${EXAMPLESDIR}
.for f in ${EXAMPLES}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}/
.endfor
    ${MKDIR} ${DOCSDIR}
.for f in ${DOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
.endif

.include <bsd.port.post.mk>