[info=2cdd65b84473dbea37548c24060ae134a7276999e6af045d084f919072b40ccd]

OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=46
This commit is contained in:
OBS User unknown 2024-11-27 18:03:40 +00:00 committed by Git OBS Bridge
parent 95bbd13df6
commit 80a871a0bf
9 changed files with 93 additions and 82 deletions

View File

@ -14,10 +14,9 @@ SLADE's own crash handler has two problems:
Fixes: #1166 Fixes: #1166
--- ---
COMPILE.md | 1 + src/Application/SLADEWxApp.cpp | 2 +-
src/Application/SLADEWxApp.cpp | 2 +- src/CMakeLists.txt | 4 ++++
src/CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-)
3 files changed, 6 insertions(+), 1 deletion(-)
Index: SLADE-3.2.6/src/Application/SLADEWxApp.cpp Index: SLADE-3.2.6/src/Application/SLADEWxApp.cpp
=================================================================== ===================================================================

View File

@ -1,4 +1,4 @@
mtime: 1732723392 mtime: 1732730602
commit: 7968d9c2a230f8cd2caf90abd31d4ad81e55a88779bbc57b8dd9f6585583fbe7 commit: 2cdd65b84473dbea37548c24060ae134a7276999e6af045d084f919072b40ccd
url: https://src.opensuse.org/jengelh/slade url: https://src.opensuse.org/jengelh/slade
revision: master revision: master

View File

@ -8,23 +8,23 @@ which is not used in Linux distros.)
src/Archive/ArchiveManager.cpp | 4 +--- src/Archive/ArchiveManager.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-) 1 file changed, 1 insertion(+), 3 deletions(-)
Index: SLADE-3.1.11/src/Archive/ArchiveManager.cpp Index: SLADE-3.2.6/src/Archive/ArchiveManager.cpp
=================================================================== ===================================================================
--- SLADE-3.1.11.orig/src/Archive/ArchiveManager.cpp --- SLADE-3.2.6.orig/src/Archive/ArchiveManager.cpp
+++ SLADE-3.1.11/src/Archive/ArchiveManager.cpp +++ SLADE-3.2.6/src/Archive/ArchiveManager.cpp
@@ -153,14 +153,12 @@ bool ArchiveManager::init() @@ -132,14 +132,12 @@ bool ArchiveManager::init()
} }
// Find slade3.pk3 directory // Find slade3.pk3 directory
- string dir_slade_pk3 = App::path("slade.pk3", App::Dir::Resources); - auto dir_slade_pk3 = app::path("slade.pk3", app::Dir::Resources);
+ string dir_slade_pk3 = App::path("slade.pk3", App::Dir::User); + auto dir_slade_pk3 = app::path("slade.pk3", app::Dir::User);
if (!wxFileExists(dir_slade_pk3)) if (!fileutil::fileExists(dir_slade_pk3))
dir_slade_pk3 = App::path("slade.pk3", App::Dir::Data); dir_slade_pk3 = app::path("slade.pk3", app::Dir::Data);
if (!wxFileExists(dir_slade_pk3)) if (!fileutil::fileExists(dir_slade_pk3))
dir_slade_pk3 = App::path("slade.pk3", App::Dir::Executable); dir_slade_pk3 = app::path("slade.pk3", app::Dir::Executable);
if (!wxFileExists(dir_slade_pk3)) if (!fileutil::fileExists(dir_slade_pk3))
- dir_slade_pk3 = App::path("slade.pk3", App::Dir::User); - dir_slade_pk3 = app::path("slade.pk3", app::Dir::User);
- if (!wxFileExists(dir_slade_pk3)) - if (!fileutil::fileExists(dir_slade_pk3))
dir_slade_pk3 = "slade.pk3"; dir_slade_pk3 = "slade.pk3";
// Open slade.pk3 // Open slade.pk3

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:ca276bd705bcbab200fdc7237b3002788db6b75b09c1b439614b00689a26c3cc oid sha256:e7fcafcf3f496e3e034224321301e77e5811a29d187ee66aebe794ba873abc3c
size 256 size 256

View File

@ -2,23 +2,30 @@ From: Jan Engelhardt <jengelh@inai.de>
Date: 2020-06-22 21:16:10.343429323 +0200 Date: 2020-06-22 21:16:10.343429323 +0200
Make use of the clzma library in openSUSE. Make use of the clzma library in openSUSE.
[openSUSE-specific patch. I was under the impression that Debian and/or Ubuntu shipped
lzma-sdk-dev too, but, upon checking, do not do so (anymore) as of 2024-11-27.]
--- ---
src/External/CMakeLists.txt | 3 +-- thirdparty/CMakeLists.txt | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-) 1 file changed, 1 insertion(+), 2 deletions(-)
Index: SLADE-3.1.12/src/External/CMakeLists.txt Index: SLADE-3.2.6/thirdparty/CMakeLists.txt
=================================================================== ===================================================================
--- SLADE-3.1.12.orig/src/External/CMakeLists.txt --- SLADE-3.2.6.orig/thirdparty/CMakeLists.txt
+++ SLADE-3.1.12/src/External/CMakeLists.txt +++ SLADE-3.2.6/thirdparty/CMakeLists.txt
@@ -26,10 +26,9 @@ file(GLOB_RECURSE EXTERNAL_SOURCES @@ -17,7 +17,6 @@ endif()
*.cxx set(EXTERNAL_SOURCES
dumb/*.c )
lua/*.c file(GLOB_RECURSE EXTERNAL_SOURCES
- lzma/C/LzmaDec.c - lzma/C/LzmaDec.c
${SLADE_HEADERS} mus2mid/mus2mid.cpp
) zreaders/*.cpp
glad/src/*.c
@@ -43,7 +42,7 @@ add_subdirectory(lunasvg/3rdparty/softwa
add_subdirectory(lunasvg/3rdparty/plutovg)
add_library(external STATIC ${EXTERNAL_SOURCES}) add_library(external STATIC ${EXTERNAL_SOURCES})
-target_link_libraries(external ${ZLIB_LIBRARY} ${wxWidgets_LIBRARIES}) -target_link_libraries(external ${ZLIB_LIBRARY} lunasvg fmt::fmt ${CMAKE_DL_LIBS})
+target_link_libraries(external ${ZLIB_LIBRARY} ${wxWidgets_LIBRARIES} -lclzma) +target_link_libraries(external ${ZLIB_LIBRARY} -lclzma lunasvg fmt::fmt ${CMAKE_DL_LIBS})
set(EXTERNAL_LIBRARIES external PARENT_SCOPE) set(EXTERNAL_LIBRARIES external PARENT_SCOPE)
if(USE_SYSTEM_DUMB)

View File

@ -1,12 +1,29 @@
--- SLADE-3.1.13/src/CMakeLists.txt.orig 2021-06-15 14:13:13.473287606 +0200 From: Jan Engelhardt <ej@inai.de>
+++ SLADE-3.1.13/src/CMakeLists.txt 2021-06-15 14:13:28.233451010 +0200 Date: 2024-11-27 17:12:00 +0100
@@ -159,9 +159,6 @@ if(APPLE) Original-Submitter: guillaume.gardet@opensuse.org
set_source_files_properties(${OSX_ICON} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) Original-Date: 2018-04-18 14:26:53
endif(APPLE)
-# enable SSE instructions for dumb library SSE is not guaranteed to be available on i586.
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_USE_SSE -msse") Testing the compiler for SSE availability is wrong — if anything,
- the test needs to happen at runtime.
if(USE_SANITIZER)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address") ---
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address") cmake/unix.cmake | 5 -----
1 file changed, 5 deletions(-)
Index: SLADE-3.2.6/cmake/unix.cmake
===================================================================
--- SLADE-3.2.6.orig/cmake/unix.cmake
+++ SLADE-3.2.6/cmake/unix.cmake
@@ -150,11 +150,6 @@ endif(APPLE)
# Enable SSE instructions for dumb library
include(CheckCCompilerFlag)
-check_c_compiler_flag(-msse HAVE_SSE)
-if(HAVE_SSE)
- add_compile_options(-msse)
- add_definitions(-D_USE_SSE)
-endif()
# Enable debug symbols for glib (so gdb debugging works properly with strings etc.)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_GLIBCXX_DEBUG")

View File

@ -2,16 +2,19 @@
Wed Nov 27 12:15:46 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com> Wed Nov 27 12:15:46 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 3.2.6: - Update to version 3.2.6:
* Please see Release Notes upstream at * Support for vertical toolbars in the UI
https://github.com/sirjuddington/SLADE/releases * Support creation of Quake PAK archives. Support for reading
- Drop patches fixed upstream: WebP and Ion Fury .art files.
* disable_sse.patch * Added EDGE-Classic support
* 0001-build-add-cmake-option-to-skip-Lua-components-1175.patch * Added support for Doom 32X map format
- Disable patches that needs rebase or dropping: * Added support for MBF21 features via new 'Boom + MBF21' port
* basepk3.diff configuration
* wx.diff * Added missing ZDoom special 107
* clzma.diff * mapeditor: Moving a sector now also moves things within it
- Rebase 0001-build-allow-deactivating-the-crash-handler-at-build-.patch * ME: Added keybinds to rotate things in 2d mode (< and > by default)
* ME: Added toggleable point light previews in 2D things mode
* Added (experimental, unfinished) 3d floor preview support in
3D mode (turned off by default)
- Replace wxWidgets-3_0-devel for wxWidgets-devel BuildRequires: - Replace wxWidgets-3_0-devel for wxWidgets-devel BuildRequires:
Package builds just fine with the newer 3.2 version. Package builds just fine with the newer 3.2 version.
- Add pkgconfig(libmpg123) BuildRequires: New dependency. - Add pkgconfig(libmpg123) BuildRequires: New dependency.

View File

@ -23,12 +23,12 @@ Summary: An editor for DOOM maps and WAD/PK3 archives
License: GPL-2.0-or-later License: GPL-2.0-or-later
Group: Amusements/Games/3D/Shoot Group: Amusements/Games/3D/Shoot
URL: https://github.com/sirjuddington/SLADE URL: https://github.com/sirjuddington/SLADE
Source: %{url}/archive/refs/tags/%version.tar.gz Source: https://github.com/sirjuddington/SLADE/archive/refs/tags/%version.tar.gz
Patch1: basepk3.diff Patch1: basepk3.diff
Patch2: wx.diff Patch2: wx.diff
Patch3: clzma.diff Patch3: clzma.diff
Patch4: 0001-build-allow-deactivating-the-crash-handler-at-build-.patch Patch4: 0001-build-allow-deactivating-the-crash-handler-at-build-.patch
Patch10: disable_sse.patch
BuildRequires: ImageMagick BuildRequires: ImageMagick
BuildRequires: cmake >= 3.1 BuildRequires: cmake >= 3.1
BuildRequires: freeimage-devel BuildRequires: freeimage-devel
@ -56,9 +56,7 @@ game-specific formats, and even convert between some of them, or
from/to other generic formats such as PNG. from/to other generic formats such as PNG.
%prep %prep
%setup -q -n SLADE-%version %autosetup -p1 -n SLADE-%version
#%%patch -P 1 -P 2 -P 3 -p1
%patch -P 4 -p1
%build %build
%define _lto_cflags %nil %define _lto_cflags %nil

35
wx.diff
View File

@ -1,41 +1,28 @@
From: Jan Engelhardt <jengelh@inai.de> From: Jan Engelhardt <jengelh@inai.de>
Date: 2020-04-18 20:10:34.215071041 +0200 Date: 2020-04-18 20:10:34.215071041 +0200
external.so references wx functions (including those present in base), but does Under SLADE 3.1.x, I observed:
not link them => add wx libs to the link.
[ 12s] /usr/include/wx-3.0/wx/filename.h:139: undefined reference to `wxFileName::Assign(wxString const&, wxPathFormat)' [ 12s] /usr/include/wx-3.0/wx/filename.h:139: undefined reference to `wxFileName::Assign(wxString const&, wxPathFormat)'
[ 12s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/external.dir/email/wxEmailMessage.o: in function `wxEmailMessage::DoAddAttachment(wxString const&, wxString&) const': [ 12s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/external.dir/email/wxEmailMessage.o: in function `wxEmailMessage::DoAddAttachment(wxString const&, wxString&) const':
Furthermore, external.so references MemChunk:: functions, but does not link While external.so is gone in SLADE 3.2.6, the function is still used,
them => change to STATIC because I am too lazy. and so we should add "base" to WX_LIBS regardless.
--- ---
src/CMakeLists.txt | 2 +- cmake/unix.cmake | 2 +-
src/External/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2 files changed, 2 insertions(+), 2 deletions(-)
Index: SLADE-3.1.12/src/CMakeLists.txt Index: SLADE-3.2.6/cmake/unix.cmake
=================================================================== ===================================================================
--- SLADE-3.1.12.orig/src/CMakeLists.txt --- SLADE-3.2.6.orig/cmake/unix.cmake
+++ SLADE-3.1.12/src/CMakeLists.txt +++ SLADE-3.2.6/cmake/unix.cmake
@@ -52,7 +52,7 @@ if (WX_GTK3) @@ -65,7 +65,7 @@ if (WX_GTK3)
set(wxWidgets_CONFIG_OPTIONS --toolkit=gtk3) set(wxWidgets_CONFIG_OPTIONS --toolkit=gtk3)
endif (WX_GTK3) endif (WX_GTK3)
-SET(WX_LIBS std aui gl stc richtext propgrid media) -SET(WX_LIBS std aui gl stc richtext propgrid)
+SET(WX_LIBS base std aui gl stc richtext propgrid media) +SET(WX_LIBS base std aui gl stc richtext propgrid)
if (NO_WEBVIEW) if (NO_WEBVIEW)
SET(WX_LIBS ${WX_LIBS} html) SET(WX_LIBS ${WX_LIBS} html)
else (NO_WEBVIEW) else (NO_WEBVIEW)
Index: SLADE-3.1.12/src/External/CMakeLists.txt
===================================================================
--- SLADE-3.1.12.orig/src/External/CMakeLists.txt
+++ SLADE-3.1.12/src/External/CMakeLists.txt
@@ -31,5 +31,5 @@ file(GLOB_RECURSE EXTERNAL_SOURCES
)
add_library(external STATIC ${EXTERNAL_SOURCES})
-target_link_libraries(external ${ZLIB_LIBRARY})
+target_link_libraries(external ${ZLIB_LIBRARY} ${wxWidgets_LIBRARIES})
set(EXTERNAL_LIBRARIES external PARENT_SCOPE)