git: 614101677d84 - main - graphics/colmap: no longer depend on libboost_system

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Mon, 04 Aug 2025 13:23:38 UTC
The branch main has been updated by fuz:

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

commit 614101677d84c38b2b7f21185a5e86a4e4fbd62a
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-07-31 16:52:18 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-08-04 13:23:24 +0000

    graphics/colmap: no longer depend on libboost_system
    
    This boost component is no longer a shared library.
    Patch cmake build scripts so it doesn't try to detect it.
    Also remove now unreferenced BOOST_STATIC options.
    
    Reported by:    fluffy
---
 graphics/colmap/Makefile                              |  3 ++-
 .../colmap/files/patch-cmake_FindDependencies.cmake   | 19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/graphics/colmap/Makefile b/graphics/colmap/Makefile
index ff330dc7534f..c111c04d9662 100644
--- a/graphics/colmap/Makefile
+++ b/graphics/colmap/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	colmap
 DISTVERSION=	3.12.3
+PORTREVISION=	1
 CATEGORIES=	graphics
 
 MAINTAINER=	fuz@FreeBSD.org
@@ -32,7 +33,7 @@ USE_CXXSTD=	c++17
 USE_GITHUB=	yes
 USE_GL=		gl glew
 USE_QT=		core gui widgets buildtools:build opengl:build qmake:build
-CMAKE_OFF=	BOOST_STATIC CUDA_ENABLED FETCH_FAISS FETCH_POSELIB
+CMAKE_OFF=	CUDA_ENABLED FETCH_FAISS FETCH_POSELIB
 CMAKE_TESTING_ON=	TESTS_ENABLED
 
 LDFLAGS+=	-Wl,--as-needed # gflags, glu, xi, xmu
diff --git a/graphics/colmap/files/patch-cmake_FindDependencies.cmake b/graphics/colmap/files/patch-cmake_FindDependencies.cmake
new file mode 100644
index 000000000000..cdb62cbe1cf7
--- /dev/null
+++ b/graphics/colmap/files/patch-cmake_FindDependencies.cmake
@@ -0,0 +1,19 @@
+--- cmake/FindDependencies.cmake.orig	2025-07-31 15:20:30 UTC
++++ cmake/FindDependencies.cmake
+@@ -21,8 +21,7 @@ find_package(Boost ${COLMAP_FIND_TYPE} COMPONENTS
+ 
+ find_package(Boost ${COLMAP_FIND_TYPE} COMPONENTS
+              graph
+-             program_options
+-             system)
++             program_options)
+ 
+ find_package(Eigen3 ${COLMAP_FIND_TYPE})
+ 
+@@ -247,4 +246,4 @@ if(OPENGL_ENABLED OR CUDA_ENABLED)
+     list(APPEND COLMAP_COMPILE_DEFINITIONS COLMAP_GPU_ENABLED)
+     message(STATUS "Enabling GPU support (OpenGL: ${OPENGL_ENABLED}, CUDA: ${CUDA_ENABLED})")
+     set(GPU_ENABLED ON)
+-endif()
+\ No newline at end of file
++endif()