git: 808769fdda87 - main - astro/libosmpbf: Fix build with protobuf 22+

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

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

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

    astro/libosmpbf: Fix build with protobuf 22+
---
 astro/libosmpbf/Makefile             |  4 ++--
 astro/libosmpbf/files/patch-protobuf | 11 +++++++++++
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/astro/libosmpbf/Makefile b/astro/libosmpbf/Makefile
index 0b57580847d4..ef91f55e6cde 100644
--- a/astro/libosmpbf/Makefile
+++ b/astro/libosmpbf/Makefile
@@ -17,7 +17,7 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	scrosby
 GH_PROJECT=	OSM-binary
 
-USES=		cmake compiler:c++11-lang
-USE_CXXSTD=	c++11
+USES=		cmake compiler:c++17-lang
+USE_CXXSTD=	c++17
 
 .include <bsd.port.mk>
diff --git a/astro/libosmpbf/files/patch-protobuf b/astro/libosmpbf/files/patch-protobuf
new file mode 100644
index 000000000000..499906ee3407
--- /dev/null
+++ b/astro/libosmpbf/files/patch-protobuf
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig	2021-01-06 13:47:22 UTC
++++ CMakeLists.txt
+@@ -4,7 +4,7 @@ project(osmpbf VERSION 1.5.0)
+ 
+ include(GNUInstallDirs)
+ 
+-set(CMAKE_CXX_STANDARD 11)
++set(CMAKE_CXX_STANDARD 17)
+ 
+ find_package(Protobuf REQUIRED)
+