From 53d2b997aba6f272d3f78e504e3c1911a6ff5b15 Mon Sep 17 00:00:00 2001 From: Daniel Engberg Date: Thu, 26 Dec 2024 03:01:58 +0800 Subject: [PATCH] graphics/geos: Add make test - Add workaround for an unit test PR: 283183 Submitted by: Daniel Engberg Reference: https://github.com/libgeos/geos/issues/1206 --- graphics/geos/Makefile | 6 ++++-- graphics/geos/files/patch-CMakeLists.txt | 11 +++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 graphics/geos/files/patch-CMakeLists.txt 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 +- "$<$,$>:-ffp-contract=off>" ++ "$<$,$>:-ffp-model=strict>" + "$<$:-ffp-contract=off>" + "$<$:/fp:precise>" + )