blob: 2443d41b850eafbd129316db405cc89601d8f6b8 (
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
|
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= mecab
PORTVERSION= 0.996
CATEGORIES= japanese textproc
MASTER_SITES= GOOGLE_CODE
MAINTAINER= yasu@utahime.org
COMMENT= Yet Another Part-of-Speech and Morphological Analyzer
LICENSE= BSD GPLv2 LGPL21
LICENSE_COMB= dual
USE_AUTOTOOLS= autoconf autoheader automake aclocal libtool
USES= iconv gettext:build perl5
USE_PERL5= build
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ENV+= ac_cv_lib_stdcpp_main=no
CPPFLAGS+= ${PTHREAD_CFLAGS} -I ${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
ACLOCAL_ARGS= --system-acdir=${LOCALBASE}/share/aclocal
AUTOMAKE_ARGS= --add-missing
MAN1= mecab.1
PORTDOCS= AUTHORS README *.html
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' \
-e 's/-O3/${CFLAGS}/' ${WRKSRC}/${CONFIGURE_SCRIPT}.in
${REINPLACE_CMD} -e 's/conf_DATA = mecabrc/conf_DATA = mecabrc.dist/' ${WRKSRC}/Makefile.am
post-configure:
${CP} ${WRKSRC}/mecabrc ${WRKSRC}/mecabrc.dist
pre-install:
${CHMOD} a+x ${WRKSRC}/install-sh
post-install:
@if [ ! -f ${PREFIX}/etc/mecabrc ]; then \
${INSTALL_DATA} ${PREFIX}/etc/mecabrc.dist ${PREFIX}/etc/mecabrc; \
fi
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS:N*.html}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}/
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|