freebsd-ports/japanese/mecab/Makefile
Muhammad Moinur Rahman 95274bf4f9 */*: Fix build with llvm16 on 13.2-STABLE
As like as HEAD(14.0-RELEASE) llvm16 was merged in base for 13.2-STABLE
with the OSVERSION 1302507.

- Utilize USE_CXXSTD=c++14 or similar solution where applicable
- Update conditionals to addtionally check for OSVERSION greater than
  1302507 and less than 1400000

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
2023-07-26 02:48:20 +02:00

48 lines
1.3 KiB
Makefile

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
WWW= https://code.google.com/p/mecab/
LICENSE= BSD3CLAUSE GPLv2 LGPL21
LICENSE_COMB= multi
BROKEN_mips= fails to link: Nonrepresentable section on output
BROKEN_mips64= fails to link: Nonrepresentable section on output
USES= gettext-tools iconv libtool localbase perl5
USE_CXXSTD= c++14
USE_LDCONFIG= yes
USE_PERL5= build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= ac_cv_lib_stdcpp_main=no
INSTALL_TARGET= install-strip
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:
${MV} ${STAGEDIR}${PREFIX}/etc/mecabrc \
${STAGEDIR}${PREFIX}/etc/mecabrc.sample
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:N*.html:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>