From nobody Sat Jun 24 18:10:13 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QpMb958lnz4hnVL; Sat, 24 Jun 2023 18:10:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QpMb9475Sz3sBn; Sat, 24 Jun 2023 18:10:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687630213; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IiGL00ZldgQtvKU/NB1R30vHCck0sTmf0V3PkKSMnaI=; b=iqigku8Xrtw7Tm3QJ73yEnhQCwpKnHohY9fre9uMgOFZIW/sHHmytfQLJwc82vJy+jCMBE MTGSkWr62ibLPH+XA2z7dIvKfR15WzE4s4kg0le1cpowXRlt6vCz2zbYwVUKaDPykMWkQN bOY0MAz7sx8eIPZsY4RQ/UXgKUoAGGatNa+Ugi4545GCIlpIfH3ZgMkuS92bp8xGnIF+bZ NpNRwvGTU29D/Ki5AvmdNMO4N+/0o3bNcu4Z89QIVulE+w/TNf+VE/wQs4IzCUcR12uTaO 4l0ZJ9ilmMeCOkhkL2Wt8uA9qfnsE4hECpKjq6qhYVnTAxPhQMHw4Ip6PdkF/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687630213; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IiGL00ZldgQtvKU/NB1R30vHCck0sTmf0V3PkKSMnaI=; b=ufrZu/kk86P/Eqcd1+O5otrlkEzZBwK/v+SToCKXApgUuJWcO0QFHarBmpHTzUn1CGlXLg h1RevFdbagi/IJ9nsHmZibI39Zk3GiUQkoWF5t7yyU0iWq9xXluo9gxZi6iKEytzgnVPI2 bTWWP6PEIqqZq6Oq8TiTjPno+TxDoXUeH7q9a4QoaiW7aSnHYLs3A5L1bCoEVA8CRbbvWc a5AcRqQgQaM9I21IFv2Pm5UGU9bvQSqJBGvOnC9XV2Dpc1v3J1ckiMDMlE+2BGN0yvkRIX zYp4TrNkyv8oDawGrM67jllxcr8rpTduxuE7UYJlwNZrUcmqx9nnXt6n5Etlow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687630213; a=rsa-sha256; cv=none; b=jKmI8ntBBP8jnHxlr0u0wM4a4t/wQjhNbHSk4QAL8IeoVNJ0UdTvfooDm/DyW8v21zHT2U q7d2FtHQCEZlLePqniUiCcE8Wuvsx0JqQsOpQqP3yisaheGk+Dtq4LTyn0wRNkMXv84g4j oqHvz8MoeSsX3PhzggG8d58Fo9HGnVhIAUAfmZEVLKymbqIwCOHtQBYjTIBRkukCrK6605 J26M3F2B2tysN91zIRDFo8/vCZXRN9vePAreItYHCyeryh0DYksfFHsjNJhd9cg5pQrdmq /jIUobNAipqygJVyP/dmZS6jtye+dHDdB6fm77MIIMrGU99p18qxmuiqCN9H4A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QpMb932sQzwKW; Sat, 24 Jun 2023 18:10:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35OIADVS016473; Sat, 24 Jun 2023 18:10:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35OIADxj016466; Sat, 24 Jun 2023 18:10:13 GMT (envelope-from git) Date: Sat, 24 Jun 2023 18:10:13 GMT Message-Id: <202306241810.35OIADxj016466@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: a41dccaf8c7d - main - japanese/mecab: Fix build with llvm16 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a41dccaf8c7df175866e7d8ce9a1dedb2a890f40 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=a41dccaf8c7df175866e7d8ce9a1dedb2a890f40 commit a41dccaf8c7df175866e7d8ce9a1dedb2a890f40 Author: Muhammad Moinur Rahman AuthorDate: 2023-06-24 17:29:06 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-06-24 18:10:02 +0000 japanese/mecab: Fix build with llvm16 - Utilize USES=localbase - Pet portclippy Sponsored by: The FreeBSD Foundation --- japanese/mecab/Makefile | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/japanese/mecab/Makefile b/japanese/mecab/Makefile index f075f3abc728..a86e474e22b1 100644 --- a/japanese/mecab/Makefile +++ b/japanese/mecab/Makefile @@ -14,20 +14,25 @@ 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_LDCONFIG= yes +USE_PERL5= build + 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 +INSTALL_TARGET= install-strip PORTDOCS= AUTHORS README *.html OPTIONS_DEFINE= DOCS +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CPPFLAGS+= -Dregister= +.endif + post-patch: @${REINPLACE_CMD} '/^libmecab_la_LIBADD =/s/$$/ $$(LTLIBICONV)/' \ ${WRKSRC}/src/Makefile.in @@ -35,6 +40,10 @@ post-patch: -e '/CFLAGS/s|-O3|${CFLAGS}|' \ -e '/CXXFLAGS/s|-O3|${CXXFLAGS}|' \ ${WRKSRC}/configure +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 + @${REINPLACE_CMD} -e 's|std::binary_function|std::__binary_function|' \ + ${WRKSRC}/src/dictionary.cpp +.endif post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR}