1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/japanese/mecab/Makefile
Sunpoet Po-Chuan Hsieh fca952b6b6 Pass maintainership to ports@
PR:		220253
Submitted by:	Yasuhiro KIMURA <yasu@utahime.org> (maintainer)
2017-06-24 16:31:50 +00:00

46 lines
1.2 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= mecab
PORTVERSION= 0.996
PORTREVISION= 3
CATEGORIES= japanese textproc
MASTER_SITES= https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE&dummy=/
MAINTAINER= ports@FreeBSD.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 <bsd.port.mk>