git: a659f3ae6805 - main - japanese/mozc-server: Fix build with protobuf 22+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 14 Dec 2023 17:03:34 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a659f3ae680577055cad624d87a01fe2d6cc6a6a

commit a659f3ae680577055cad624d87a01fe2d6cc6a6a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-12-14 16:22:34 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-12-14 17:03:06 +0000

    japanese/mozc-server: Fix build with protobuf 22+
---
 japanese/mozc-server/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/japanese/mozc-server/Makefile b/japanese/mozc-server/Makefile
index 20296b559677..719364ca69c1 100644
--- a/japanese/mozc-server/Makefile
+++ b/japanese/mozc-server/Makefile
@@ -23,11 +23,14 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	hrs-allbsd
 GH_TUPLE=	hiroyuki-komatsu:japanese-usage-dictionary:e5b3425:udic
 
-USES=		compiler:c++11-lang gmake ninja:build pkgconfig \
+USES=		compiler:c++17-lang gmake ninja:build pkgconfig \
 		python:build shebangfix tar:bzip2
 SHEBANG_FILES=	src/build_mozc.py
 BUILD_WRKSRC=	${WRKSRC}/src
 
+LDFLAGS+=	-labsl_spinlock_wait
+USE_CXXSTD=	c++17
+
 BUILD_MOZC_LIST?=	mozc_server
 
 .if ${BUILD_MOZC_LIST:Mmozc_server} == "mozc_server"