SHA256
1
0
forked from pool/slade

- Add lzma.diff to use system-provided clzma library.

OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=30
This commit is contained in:
Jan Engelhardt 2020-06-22 20:16:48 +00:00 committed by Git OBS Bridge
parent 82e18c4122
commit 7c047ec165
3 changed files with 39 additions and 6 deletions

24
clzma.diff Normal file
View File

@ -0,0 +1,24 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2020-06-22 21:16:10.343429323 +0200
Make use of the clzma library in openSUSE.
---
src/External/CMakeLists.txt | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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
@@ -26,10 +26,9 @@ file(GLOB_RECURSE EXTERNAL_SOURCES
*.cxx
dumb/*.c
lua/*.c
- lzma/C/LzmaDec.c
${SLADE_HEADERS}
)
add_library(external STATIC ${EXTERNAL_SOURCES})
-target_link_libraries(external ${ZLIB_LIBRARY} ${wxWidgets_LIBRARIES})
+target_link_libraries(external ${ZLIB_LIBRARY} ${wxWidgets_LIBRARIES} -lclzma)
set(EXTERNAL_LIBRARIES external PARENT_SCOPE)

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 22 20:16:13 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
- Add lzma.diff to use system-provided clzma library.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue May 26 08:26:11 UTC 2020 - Jan Engelhardt <jengelh@inai.de> Tue May 26 08:26:11 UTC 2020 - Jan Engelhardt <jengelh@inai.de>

View File

@ -28,6 +28,7 @@ Source2: slade.desktop
Source100: slade.appdata.xml Source100: slade.appdata.xml
Patch1: basepk3.diff Patch1: basepk3.diff
Patch2: wx.diff Patch2: wx.diff
Patch3: clzma.diff
Patch10: disable_sse.patch Patch10: disable_sse.patch
BuildRequires: ImageMagick BuildRequires: ImageMagick
BuildRequires: cmake >= 3.1 BuildRequires: cmake >= 3.1
@ -38,6 +39,7 @@ BuildRequires: strip-nondeterminism
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
BuildRequires: wxWidgets-3_0-devel BuildRequires: wxWidgets-3_0-devel
BuildRequires: zip BuildRequires: zip
BuildRequires: pkgconfig(clzma)
BuildRequires: pkgconfig(fluidsynth) BuildRequires: pkgconfig(fluidsynth)
BuildRequires: pkgconfig(ftgl) BuildRequires: pkgconfig(ftgl)
BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(gl)
@ -47,21 +49,23 @@ BuildRequires: pkgconfig(sfml-all)
BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(x11)
%description %description
SLADE3 is an editor for Doom-engine based games and source SLADE is an editor for Doom-engine based games and source
ports. It has the ability to view, modify, and write many different ports. It has the ability to view, modify, and write many different
game-specific formats, and even convert between some of them, or 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 %setup -q -n SLADE-%version
%patch -P 1 -P 2 -p1 %patch -P 1 -P 2 -P 3 -p1
%ifnarch %ix86 x86_64 %ifnarch %ix86 x86_64
%patch10 -p0 %patch10 -p0
%endif %endif
%build %build
%define _lto_cflags %nil %define _lto_cflags %nil
%cmake -DNO_WEBVIEW=ON -DWX_GTK3=OFF %cmake -DNO_WEBVIEW=ON -DWX_GTK3=OFF \
-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="%optflags" \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="%optflags"
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
@ -75,10 +79,10 @@ install -Dpm0644 "%name.png" "$b/%_datadir/pixmaps/%name.png"
install -Dpm0644 %{SOURCE100} "$b/%_datadir/appdata/%name.appdata.xml" install -Dpm0644 %{SOURCE100} "$b/%_datadir/appdata/%name.appdata.xml"
pushd misc pushd misc
for txtfile in detect_functions.txt old-simage-formats.txt stuff.txt udmf11.txt \ for txtfile in detect_functions.txt old-simage-formats.txt stuff.txt \
udmf_zdoom.txt usdf.txt usdf_zdoom.txt udmf11.txt udmf_zdoom.txt usdf.txt usdf_zdoom.txt
do do
install -Dm644 $txtfile "$b/%_datadir/slade3/misc/$txtfile" install -Dm644 "$txtfile" "$b/%_datadir/slade3/misc/$txtfile"
done done
popd popd