2003-04-23 06:51:56 +00:00
|
|
|
# New ports collection makefile for: mecab
|
|
|
|
# Date created: 2 April 2003
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2006-05-07 08:19:23 +00:00
|
|
|
PORTNAME= mecab
|
2008-03-27 02:06:38 +00:00
|
|
|
PORTVERSION= 0.97
|
2003-04-23 06:51:56 +00:00
|
|
|
CATEGORIES= japanese textproc
|
2008-03-27 02:06:38 +00:00
|
|
|
MASTER_SITES= SF
|
2003-04-23 06:51:56 +00:00
|
|
|
|
2006-07-16 15:15:17 +00:00
|
|
|
MAINTAINER= clsung@FreeBSD.org
|
2003-04-23 06:51:56 +00:00
|
|
|
COMMENT= Yet Another Part-of-Speech and Morphological Analyzer
|
|
|
|
|
2007-02-01 02:42:05 +00:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2006-08-02 00:22:21 +00:00
|
|
|
USE_ICONV= yes
|
2007-09-08 01:12:10 +00:00
|
|
|
USE_PERL5_BUILD= 5.8.0+
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2006-08-14 05:08:22 +00:00
|
|
|
USE_LDCONFIG= yes
|
2003-04-23 06:51:56 +00:00
|
|
|
|
2006-08-14 05:08:22 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I ${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
2004-11-22 00:02:56 +00:00
|
|
|
|
2006-08-02 00:22:21 +00:00
|
|
|
# Default charset (euc-jp/shift_jis/utf-8)
|
2006-07-31 02:52:49 +00:00
|
|
|
.if defined(WITH_CHARSET)
|
2007-02-25 07:47:17 +00:00
|
|
|
CONFIGURE_ARGS+= --with-charset=${WITH_CHARSET}
|
2006-07-31 02:52:49 +00:00
|
|
|
.endif
|
|
|
|
|
2003-04-23 06:51:56 +00:00
|
|
|
MAN1= mecab.1
|
|
|
|
|
2006-05-07 08:19:23 +00:00
|
|
|
DOCS= AUTHORS README doc/*.html
|
2003-04-23 06:51:56 +00:00
|
|
|
|
2006-05-20 17:07:10 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-07-31 02:52:49 +00:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' \
|
|
|
|
-e 's/-O3/${CFLAGS}/' ${WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
${REINPLACE_CMD} -e 's/conf_DATA = mecabrc/conf_DATA = mecabrc.dist/' ${WRKSRC}/Makefile.in
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
${CP} ${WRKSRC}/mecabrc ${WRKSRC}/mecabrc.dist
|
|
|
|
|
2008-03-27 02:06:38 +00:00
|
|
|
pre-install:
|
|
|
|
${CHMOD} a+x ${WRKSRC}/install-sh
|
|
|
|
|
2003-04-23 06:51:56 +00:00
|
|
|
post-install:
|
2007-08-04 11:41:30 +00:00
|
|
|
@if [ ! -f ${PREFIX}/etc/mecabrc ]; then \
|
|
|
|
${INSTALL_DATA} ${PREFIX}/etc/mecabrc.dist ${PREFIX}/etc/mecabrc; \
|
2006-07-31 02:52:49 +00:00
|
|
|
fi
|
2003-04-23 06:51:56 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for f in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
|
|
|
|
.endfor
|
|
|
|
.endif
|
2006-05-14 06:16:04 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2003-04-23 06:51:56 +00:00
|
|
|
|
2006-05-20 17:07:10 +00:00
|
|
|
.include <bsd.port.post.mk>
|