git: 2ae03d3a684e - main - www/osrm-backend: unbundle sol2

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Mon, 06 Jan 2025 23:06:48 UTC
The branch main has been updated by fuz:

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

commit 2ae03d3a684e76d8ecc643a13104088bef26fbb7
Author:     Peter Laursen <freebsd@mosedal.net>
AuthorDate: 2025-01-04 17:50:19 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-01-06 23:06:10 +0000

    www/osrm-backend: unbundle sol2
    
     - Remove the DEBUG option - it did nothing.
     - Trie to unbundle the included sol2 library.
     - Remove the dependency on Clang 18 for FreeBSD-Current.
     - Bump PORTREVISION
    
    PR:             283292
    MFH:            2025Q1
---
 www/osrm-backend/Makefile | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/www/osrm-backend/Makefile b/www/osrm-backend/Makefile
index 54ad6bed98ec..e9543fd55223 100644
--- a/www/osrm-backend/Makefile
+++ b/www/osrm-backend/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	osrm-backend
 DISTVERSIONPREFIX=	v
 DISTVERSION=	5.28.0.d20240803
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	www
 
 MAINTAINER=	freebsd@mosedal.net
@@ -14,6 +14,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE.TXT
 NOT_FOR_ARCHS=	armv7 i386
 NOT_FOR_ARCHS_REASON=	Building on a 32 bit system is not supported
 
+BUILD_DEPENDS=	${LOCALBASE}/include/sol:devel/sol2
 LIB_DEPENDS=	libboost_date_time.so:devel/boost-libs \
 		libboost_iostreams.so:devel/boost-libs \
 		libboost_program_options.so:devel/boost-libs \
@@ -33,13 +34,10 @@ CMAKE_ON=	BUILD_STATIC_LIBS
 USERS=		osrm
 GROUPS=		osrm
 
-OPTIONS_DEFINE=	DEBUG
-
-.include <bsd.port.options.mk>
-
-.if ${OSVERSION} >= 1500025
-USES+= llvm:max=18
-.endif
+pre-configure:
+	${REINPLACE_CMD} \
+		-e 's,$${CMAKE_CURRENT_SOURCE_DIR}/third_party/sol2/include,${LOCALBASE}/include/sol,' \
+		${WRKSRC}/CMakeLists.txt
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|-Werror=all -Werror=extra|-Werror=extra|g' \