git: d0b16b90db02 - main - games/slade: only enable SSE on i386 to fix other architectures
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 Aug 2024 12:01:17 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=d0b16b90db02e3d86aef8989007f23e4d31dc2ee commit d0b16b90db02e3d86aef8989007f23e4d31dc2ee Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-07-31 09:03:32 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2024-08-04 12:00:34 +0000 games/slade: only enable SSE on i386 to fix other architectures cc: error: unsupported option '-msse' for target 'powerpc-unknown-freebsd14.1' --- games/slade/files/patch-src_CMakeLists.txt | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/games/slade/files/patch-src_CMakeLists.txt b/games/slade/files/patch-src_CMakeLists.txt index aa926d46720c..96a3bab652cb 100644 --- a/games/slade/files/patch-src_CMakeLists.txt +++ b/games/slade/files/patch-src_CMakeLists.txt @@ -1,6 +1,6 @@ ---- src/CMakeLists.txt.orig 2018-11-25 00:21:04 UTC +--- src/CMakeLists.txt.orig 2021-06-01 04:32:31 UTC +++ src/CMakeLists.txt -@@ -16,7 +16,11 @@ unset(WITH_WXPATH CACHE) +@@ -16,7 +16,11 @@ if (UNIX OR MINGW) set( CL_WX_CONFIG wx-config ) if (UNIX OR MINGW) @@ -13,7 +13,7 @@ if (NOT WX_TOOL) message(FATAL_ERROR "\nNo functional wx_config script was found in your PATH.\nIs the wxWidgets development package installed?\nIf you built wxWidgets yourself, you can specify the path to your built wx-config executable via WITH_WXPATH\neg. -DWITH_WXPATH=\"/path/to/wx-config/\"" -@@ -52,7 +54,16 @@ if (WX_GTK3) +@@ -52,7 +56,16 @@ endif (WX_GTK3) set(wxWidgets_CONFIG_OPTIONS --toolkit=gtk3) endif (WX_GTK3) @@ -31,3 +31,14 @@ if (NO_WEBVIEW) SET(WX_LIBS ${WX_LIBS} html) else (NO_WEBVIEW) +@@ -159,8 +172,10 @@ endif(APPLE) + set_source_files_properties(${OSX_ICON} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) + endif(APPLE) + ++if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "i386") + # enable SSE instructions for dumb library + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_USE_SSE -msse") ++endif() + + if(USE_SANITIZER) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address")