diff --git a/graphics/geos/Makefile b/graphics/geos/Makefile
index 62e9ec883bed0..fe44cd9d405d7 100644
--- a/graphics/geos/Makefile
+++ b/graphics/geos/Makefile
@@ -12,9 +12,11 @@ WWW=		https://libgeos.org/ \
 LICENSE=	LGPL21
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		cmake compiler:c++14-lang pathfix tar:bzip2
+USES=		cmake:testing compiler:c++14-lang pathfix tar:bzip2
 
-CMAKE_OFF=	BUILD_BENCHMARKS DISABLE_GEOS_INLINE
+CMAKE_OFF=	BUILD_BENCHMARKS \
+		BUILD_TESTING \
+		DISABLE_GEOS_INLINE
 CMAKE_ON=	BUILD_SHARED_LIBS
 USE_LDCONFIG=	yes
 
diff --git a/graphics/geos/files/patch-CMakeLists.txt b/graphics/geos/files/patch-CMakeLists.txt
new file mode 100644
index 0000000000000..ead3fac57d527
--- /dev/null
+++ b/graphics/geos/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig	2024-12-07 16:18:30 UTC
++++ CMakeLists.txt
+@@ -215,7 +215,7 @@ target_compile_options(geos_cxx_flags INTERFACE
+ #-----------------------------------------------------------------------------
+ 
+ target_compile_options(geos_cxx_flags INTERFACE
+-	"$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:-ffp-contract=off>"
++	"$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:-ffp-model=strict>"
+ 	"$<$<CXX_COMPILER_ID:GNU>:-ffp-contract=off>"
+ 	"$<$<BOOL:${MSVC}>:/fp:precise>"
+ 	)