graphics/geos: Add make test

- Add workaround for an unit test

PR:		283183
Submitted by:	Daniel Engberg <diizzy@FreeBSD.org>
Reference:	https://github.com/libgeos/geos/issues/1206
This commit is contained in:
Daniel Engberg 2024-12-26 03:01:58 +08:00 committed by Po-Chuan Hsieh
parent 7be2a23e61
commit 53d2b997ab
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
2 changed files with 15 additions and 2 deletions

View file

@ -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

View file

@ -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>"
)