git: fb5004c69215 - main - net/libarcus: Fix build with protobuf 22+

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

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

commit fb5004c69215be796b94d869d639a213bfecad30
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-12-14 16:23:07 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-12-14 17:03:08 +0000

    net/libarcus: Fix build with protobuf 22+
---
 net/libarcus/Makefile             |  3 ++-
 net/libarcus/files/patch-protobuf | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/net/libarcus/Makefile b/net/libarcus/Makefile
index c8cd0472e930..c69ed8e705ef 100644
--- a/net/libarcus/Makefile
+++ b/net/libarcus/Makefile
@@ -15,7 +15,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 BUILD_DEPENDS=	sip:devel/py-sip4
 LIB_DEPENDS=	libprotobuf.so:devel/protobuf
 
-USES=		cmake compiler:c++11-lang python pyqt:5
+USES=		cmake compiler:c++17-lang python pyqt:5
 USE_PYQT=	pysip
 USE_GITHUB=	yes
 GH_ACCOUNT=	Ultimaker
@@ -24,4 +24,5 @@ USE_LDCONFIG=	yes
 
 CMAKE_ARGS+=	-DPYTHON_EXECUTABLE:STRING=${PYTHON_CMD} \
 				-DPYTHON_INCLUDEDIR:STRING=${PYTHON_INCLUDEDIR}
+
 .include <bsd.port.mk>
diff --git a/net/libarcus/files/patch-protobuf b/net/libarcus/files/patch-protobuf
new file mode 100644
index 000000000000..5fccf07f15b7
--- /dev/null
+++ b/net/libarcus/files/patch-protobuf
@@ -0,0 +1,11 @@
+--- examples/CMakeLists.txt.orig	2021-11-26 15:37:16 UTC
++++ examples/CMakeLists.txt
+@@ -12,7 +12,7 @@ add_executable(example ${example_SRCS} ${example_PB_SR
+ target_link_libraries(example Arcus)
+ if(NOT WIN32 OR CMAKE_COMPILER_IS_GNUCXX)
+     target_link_libraries(example pthread)
+-    set_target_properties(example PROPERTIES COMPILE_FLAGS "-std=c++11")
++    set_target_properties(example PROPERTIES COMPILE_FLAGS "-std=c++17")
+ endif()
+ 
+ add_custom_command(