mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
7557917ac1
PR: 194368
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mecab
|
|
PORTVERSION= 0.996
|
|
PORTREVISION= 2
|
|
CATEGORIES= japanese textproc
|
|
MASTER_SITES= GOOGLE_CODE
|
|
|
|
MAINTAINER= yasu@utahime.org
|
|
COMMENT= Yet Another Part-of-Speech and Morphological Analyzer
|
|
|
|
LICENSE= BSD3CLAUSE GPLv2 LGPL21
|
|
LICENSE_COMB= multi
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= ac_cv_lib_stdcpp_main=no
|
|
INSTALL_TARGET= install-strip
|
|
USES= iconv gettext:build libtool perl5
|
|
USE_AUTOTOOLS= autoconf autoheader automake aclocal libtoolize
|
|
AUTOMAKE_ARGS= --add-missing --copy --force
|
|
USE_PERL5= build
|
|
USE_LDCONFIG= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LIBS+= -L${LOCALBASE}/lib
|
|
|
|
PORTDOCS= AUTHORS README *.html
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's/-O3/${CFLAGS}/' ${WRKSRC}/${CONFIGURE_SCRIPT}.in
|
|
${REINPLACE_CMD} -e 's/conf_DATA = mecabrc/conf_DATA = mecabrc.sample/' ${WRKSRC}/Makefile.am
|
|
|
|
post-configure:
|
|
${CP} ${WRKSRC}/mecabrc ${WRKSRC}/mecabrc.sample
|
|
|
|
pre-install:
|
|
${CHMOD} a+x ${WRKSRC}/install-sh
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:N*.html:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|