# Created by: Akinori MUSHA aka knu # $FreeBSD: head/japanese/mecab/Makefile 373636 2014-11-29 18:22:32Z tijl $ 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= gettext-tools iconv libtool perl5 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} '/^libmecab_la_LIBADD =/s/$$/ $$(LTLIBICONV)/' \ ${WRKSRC}/src/Makefile.in @${REINPLACE_CMD} \ -e '/CFLAGS/s|-O3|${CFLAGS}|' \ -e '/CXXFLAGS/s|-O3|${CXXFLAGS}|' \ ${WRKSRC}/configure post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:N*.html:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR} ${MV} ${STAGEDIR}${PREFIX}/etc/mecabrc \ ${STAGEDIR}${PREFIX}/etc/mecabrc.sample .include