- Update to release 4.11.3
OBS-URL: https://build.opensuse.org/package/show/games/gzdoom?expand=0&rev=100
This commit is contained in:
parent
f7e9b6c025
commit
21bf09cd21
331
0001-Revert-Switch-to-miniz-from-zlib.patch
Normal file
331
0001-Revert-Switch-to-miniz-from-zlib.patch
Normal file
@ -0,0 +1,331 @@
|
|||||||
|
From b0910739a3fe9ade92356f2ed510049ebbccbec9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jan Engelhardt <jengelh@inai.de>
|
||||||
|
Date: Fri, 27 Oct 2023 09:01:47 +0200
|
||||||
|
Subject: [PATCH] Revert "Switch to miniz from zlib"
|
||||||
|
|
||||||
|
This reverts commit ba9ce0e83f6e25e3ddef5000bd51d53f2e3947a2.
|
||||||
|
---
|
||||||
|
CMakeLists.txt | 13 ++++++++++++-
|
||||||
|
src/CMakeLists.txt | 4 ++--
|
||||||
|
src/common/audio/music/i_music.cpp | 2 +-
|
||||||
|
src/common/engine/serializer.cpp | 2 +-
|
||||||
|
src/common/filesystem/source/files_decompress.cpp | 2 +-
|
||||||
|
src/common/filesystem/source/filesystem.cpp | 2 +-
|
||||||
|
src/common/filesystem/source/resourcefile.cpp | 2 +-
|
||||||
|
src/common/models/model.cpp | 13 +++++++++++--
|
||||||
|
src/common/platform/win32/i_crash.cpp | 2 +-
|
||||||
|
src/common/textures/m_png.cpp | 2 +-
|
||||||
|
src/common/thirdparty/m_crc32.h | 5 +++--
|
||||||
|
src/g_pch.h | 2 +-
|
||||||
|
src/g_pch2.h | 2 +-
|
||||||
|
src/maploader/glnodes.cpp | 2 +-
|
||||||
|
src/serializer_doom.cpp | 2 +-
|
||||||
|
tools/zipdir/CMakeLists.txt | 4 ++--
|
||||||
|
tools/zipdir/zipdir.c | 2 +-
|
||||||
|
vcpkg.json | 4 ++++
|
||||||
|
18 files changed, 46 insertions(+), 21 deletions(-)
|
||||||
|
|
||||||
|
Index: gzdoom-g4.11.3/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/CMakeLists.txt
|
||||||
|
+++ gzdoom-g4.11.3/CMakeLists.txt
|
||||||
|
@@ -216,6 +216,7 @@ option( NO_OPENAL "Disable OpenAL sound
|
||||||
|
|
||||||
|
find_package( BZip2 )
|
||||||
|
find_package( VPX )
|
||||||
|
+find_package( ZLIB )
|
||||||
|
find_package( WebP )
|
||||||
|
if (NOT WebP_FOUND)
|
||||||
|
include(FindPkgConfig)
|
||||||
|
@@ -347,6 +348,7 @@ set( CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE
|
||||||
|
set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} ${REL_C_FLAGS}" )
|
||||||
|
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${DEB_C_FLAGS} -D_DEBUG" )
|
||||||
|
|
||||||
|
+option(FORCE_INTERNAL_ZLIB "Use internal zlib")
|
||||||
|
option(FORCE_INTERNAL_BZIP2 "Use internal bzip2")
|
||||||
|
option(FORCE_INTERNAL_ASMJIT "Use internal asmjit" ON)
|
||||||
|
mark_as_advanced( FORCE_INTERNAL_ASMJIT )
|
||||||
|
@@ -360,6 +362,16 @@ set( DRPC_INCLUDE_DIR "-I/ignore" )
|
||||||
|
set( DRPC_LIBRARIES -ldiscord-rpc )
|
||||||
|
set( DRPC_LIBRARY -ldiscord-rpc )
|
||||||
|
|
||||||
|
+if( ZLIB_FOUND AND NOT FORCE_INTERNAL_ZLIB )
|
||||||
|
+ message( STATUS "Using system zlib, includes found at ${ZLIB_INCLUDE_DIR}" )
|
||||||
|
+else()
|
||||||
|
+ message( STATUS "Using internal zlib" )
|
||||||
|
+ set( SKIP_INSTALL_ALL TRUE ) # Avoid installing zlib
|
||||||
|
+ set( ZLIB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libraries/zlib )
|
||||||
|
+ set( ZLIB_LIBRARIES z )
|
||||||
|
+ set( ZLIB_LIBRARY z )
|
||||||
|
+endif()
|
||||||
|
+
|
||||||
|
if( HAVE_VM_JIT AND UNIX )
|
||||||
|
check_symbol_exists( "backtrace" "execinfo.h" HAVE_BACKTRACE )
|
||||||
|
if( NOT HAVE_BACKTRACE )
|
||||||
|
@@ -417,7 +429,6 @@ install(DIRECTORY docs/
|
||||||
|
|
||||||
|
option( DYN_OPENAL "Dynamically load OpenAL" ON )
|
||||||
|
|
||||||
|
-add_subdirectory( libraries/miniz )
|
||||||
|
add_subdirectory( tools )
|
||||||
|
add_subdirectory( wadsrc )
|
||||||
|
add_subdirectory( wadsrc_bm )
|
||||||
|
Index: gzdoom-g4.11.3/src/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/src/CMakeLists.txt
|
||||||
|
+++ gzdoom-g4.11.3/src/CMakeLists.txt
|
||||||
|
@@ -344,7 +344,7 @@ add_custom_target( revision_check ALL
|
||||||
|
|
||||||
|
# required libraries
|
||||||
|
|
||||||
|
-set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} miniz "${BZIP2_LIBRARIES}" "${CMAKE_DL_LIBS}" "${DRPC_LIBRARIES}")
|
||||||
|
+set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} "${ZLIB_LIBRARIES}" "${BZIP2_LIBRARIES}" "${CMAKE_DL_LIBS}" "${DRPC_LIBRARIES}")
|
||||||
|
if (HAVE_VULKAN)
|
||||||
|
list( APPEND PROJECT_LIBRARIES "zvulkan" )
|
||||||
|
endif()
|
||||||
|
@@ -412,7 +412,7 @@ if (TARGET WebP::webp)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
-include_directories( SYSTEM "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIRS}" "${ZMUSIC_INCLUDE_DIR}" "${DRPC_INCLUDE_DIR}")
|
||||||
|
+include_directories( SYSTEM "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIRS}" "${ZMUSIC_INCLUDE_DIR}" "${DRPC_INCLUDE_DIR}")
|
||||||
|
|
||||||
|
if( ${HAVE_VM_JIT} )
|
||||||
|
add_definitions( -DHAVE_VM_JIT )
|
||||||
|
Index: gzdoom-g4.11.3/src/common/audio/music/i_music.cpp
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/src/common/audio/music/i_music.cpp
|
||||||
|
+++ gzdoom-g4.11.3/src/common/audio/music/i_music.cpp
|
||||||
|
@@ -37,7 +37,7 @@
|
||||||
|
#include <sys/wait.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#include <miniz.h>
|
||||||
|
+#include <zlib.h>
|
||||||
|
|
||||||
|
#include <zmusic.h>
|
||||||
|
#include "filesystem.h"
|
||||||
|
Index: gzdoom-g4.11.3/src/common/engine/serializer.cpp
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/src/common/engine/serializer.cpp
|
||||||
|
+++ gzdoom-g4.11.3/src/common/engine/serializer.cpp
|
||||||
|
@@ -38,7 +38,7 @@
|
||||||
|
#define RAPIDJSON_HAS_CXX11_RANGE_FOR 1
|
||||||
|
#define RAPIDJSON_PARSE_DEFAULT_FLAGS kParseFullPrecisionFlag
|
||||||
|
|
||||||
|
-#include <miniz.h>
|
||||||
|
+#include <zlib.h>
|
||||||
|
#include "rapidjson/rapidjson.h"
|
||||||
|
#include "rapidjson/writer.h"
|
||||||
|
#include "rapidjson/prettywriter.h"
|
||||||
|
Index: gzdoom-g4.11.3/src/common/filesystem/source/files_decompress.cpp
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/src/common/filesystem/source/files_decompress.cpp
|
||||||
|
+++ gzdoom-g4.11.3/src/common/filesystem/source/files_decompress.cpp
|
||||||
|
@@ -36,7 +36,7 @@
|
||||||
|
// Caution: LzmaDec also pulls in windows.h!
|
||||||
|
#define NOMINMAX
|
||||||
|
#include "LzmaDec.h"
|
||||||
|
-#include <miniz.h>
|
||||||
|
+#include <zlib.h>
|
||||||
|
#include <bzlib.h>
|
||||||
|
#include <algorithm>
|
||||||
|
#include <stdexcept>
|
||||||
|
Index: gzdoom-g4.11.3/src/common/filesystem/source/filesystem.cpp
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/src/common/filesystem/source/filesystem.cpp
|
||||||
|
+++ gzdoom-g4.11.3/src/common/filesystem/source/filesystem.cpp
|
||||||
|
@@ -36,7 +36,7 @@
|
||||||
|
|
||||||
|
// HEADER FILES ------------------------------------------------------------
|
||||||
|
|
||||||
|
-#include <miniz.h>
|
||||||
|
+#include <zlib.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <string.h>
|
||||||
|
Index: gzdoom-g4.11.3/src/common/filesystem/source/resourcefile.cpp
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/src/common/filesystem/source/resourcefile.cpp
|
||||||
|
+++ gzdoom-g4.11.3/src/common/filesystem/source/resourcefile.cpp
|
||||||
|
@@ -34,7 +34,7 @@
|
||||||
|
**
|
||||||
|
*/
|
||||||
|
|
||||||
|
-#include <miniz.h>
|
||||||
|
+#include <zlib.h>
|
||||||
|
#include "resourcefile_internal.h"
|
||||||
|
#include "md5.hpp"
|
||||||
|
#include "fs_stringpool.h"
|
||||||
|
Index: gzdoom-g4.11.3/src/common/models/model.cpp
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/src/common/models/model.cpp
|
||||||
|
+++ gzdoom-g4.11.3/src/common/models/model.cpp
|
||||||
|
@@ -25,7 +25,6 @@
|
||||||
|
** General model handling code
|
||||||
|
**
|
||||||
|
**/
|
||||||
|
-#include <stddef.h> // offsetof() macro.
|
||||||
|
|
||||||
|
#include "filesystem.h"
|
||||||
|
#include "cmdlib.h"
|
||||||
|
@@ -133,7 +132,17 @@ FTextureID LoadSkin(const char * path, c
|
||||||
|
|
||||||
|
int ModelFrameHash(FSpriteModelFrame * smf)
|
||||||
|
{
|
||||||
|
- return crc32(0, (const unsigned char *)(&smf->type), offsetof(FSpriteModelFrame, hashnext) - offsetof(FSpriteModelFrame, type));
|
||||||
|
+ const uint32_t *table = GetCRCTable ();
|
||||||
|
+ uint32_t hash = 0xffffffff;
|
||||||
|
+
|
||||||
|
+ const char * s = (const char *)(&smf->type); // this uses type, sprite and frame for hashing
|
||||||
|
+ const char * se= (const char *)(&smf->hashnext);
|
||||||
|
+
|
||||||
|
+ for (; s<se; s++)
|
||||||
|
+ {
|
||||||
|
+ hash = CRC1 (hash, *s, table);
|
||||||
|
+ }
|
||||||
|
+ return hash ^ 0xffffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
//===========================================================================
|
||||||
|
Index: gzdoom-g4.11.3/src/common/platform/win32/i_crash.cpp
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/src/common/platform/win32/i_crash.cpp
|
||||||
|
+++ gzdoom-g4.11.3/src/common/platform/win32/i_crash.cpp
|
||||||
|
@@ -68,7 +68,7 @@
|
||||||
|
#include "i_mainwindow.h"
|
||||||
|
|
||||||
|
#include <time.h>
|
||||||
|
-#include <miniz.h>
|
||||||
|
+#include <zlib.h>
|
||||||
|
|
||||||
|
// MACROS ------------------------------------------------------------------
|
||||||
|
|
||||||
|
Index: gzdoom-g4.11.3/src/common/textures/m_png.cpp
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/src/common/textures/m_png.cpp
|
||||||
|
+++ gzdoom-g4.11.3/src/common/textures/m_png.cpp
|
||||||
|
@@ -36,7 +36,7 @@
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
#include <stdlib.h>
|
||||||
|
-#include <miniz.h>
|
||||||
|
+#include <zlib.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#include <malloc.h> // for alloca()
|
||||||
|
Index: gzdoom-g4.11.3/src/common/thirdparty/m_crc32.h
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/src/common/thirdparty/m_crc32.h
|
||||||
|
+++ gzdoom-g4.11.3/src/common/thirdparty/m_crc32.h
|
||||||
|
@@ -32,11 +32,12 @@
|
||||||
|
**
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
-#include <miniz.h>
|
||||||
|
+#include <zlib.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
-// miniz includes some CRC32 stuff, so just use that
|
||||||
|
+// zlib includes some CRC32 stuff, so just use that
|
||||||
|
|
||||||
|
+inline const uint32_t *GetCRCTable () { return (const uint32_t *)get_crc_table(); }
|
||||||
|
inline uint32_t CalcCRC32 (const uint8_t *buf, unsigned int len)
|
||||||
|
{
|
||||||
|
return crc32 (0, buf, len);
|
||||||
|
Index: gzdoom-g4.11.3/src/g_pch.h
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/src/g_pch.h
|
||||||
|
+++ gzdoom-g4.11.3/src/g_pch.h
|
||||||
|
@@ -10,7 +10,7 @@
|
||||||
|
#include <errno.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
-#include <miniz.h>
|
||||||
|
+#include <zlib.h>
|
||||||
|
#include <new>
|
||||||
|
#include <algorithm>
|
||||||
|
#include <forward_list>
|
||||||
|
Index: gzdoom-g4.11.3/src/g_pch2.h
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/src/g_pch2.h
|
||||||
|
+++ gzdoom-g4.11.3/src/g_pch2.h
|
||||||
|
@@ -11,7 +11,7 @@
|
||||||
|
#include <errno.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
-#include <miniz.h>
|
||||||
|
+#include <zlib.h>
|
||||||
|
#include <new>
|
||||||
|
#include <algorithm>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
Index: gzdoom-g4.11.3/src/maploader/glnodes.cpp
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/src/maploader/glnodes.cpp
|
||||||
|
+++ gzdoom-g4.11.3/src/maploader/glnodes.cpp
|
||||||
|
@@ -42,7 +42,7 @@
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#include <miniz.h>
|
||||||
|
+#include <zlib.h>
|
||||||
|
|
||||||
|
#include "m_argv.h"
|
||||||
|
#include "c_dispatch.h"
|
||||||
|
Index: gzdoom-g4.11.3/src/serializer_doom.cpp
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/src/serializer_doom.cpp
|
||||||
|
+++ gzdoom-g4.11.3/src/serializer_doom.cpp
|
||||||
|
@@ -38,7 +38,7 @@
|
||||||
|
#define RAPIDJSON_HAS_CXX11_RANGE_FOR 1
|
||||||
|
#define RAPIDJSON_PARSE_DEFAULT_FLAGS kParseFullPrecisionFlag
|
||||||
|
|
||||||
|
-#include <miniz.h>
|
||||||
|
+#include <zlib.h>
|
||||||
|
#include "rapidjson/rapidjson.h"
|
||||||
|
#include "rapidjson/writer.h"
|
||||||
|
#include "rapidjson/prettywriter.h"
|
||||||
|
Index: gzdoom-g4.11.3/tools/zipdir/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/tools/zipdir/CMakeLists.txt
|
||||||
|
+++ gzdoom-g4.11.3/tools/zipdir/CMakeLists.txt
|
||||||
|
@@ -1,9 +1,9 @@
|
||||||
|
cmake_minimum_required( VERSION 3.16 )
|
||||||
|
|
||||||
|
if( NOT CMAKE_CROSSCOMPILING )
|
||||||
|
- include_directories( SYSTEM "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIRS}" )
|
||||||
|
+ include_directories( SYSTEM "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIRS}" )
|
||||||
|
add_executable( zipdir
|
||||||
|
zipdir.c )
|
||||||
|
- target_link_libraries( zipdir miniz ${BZIP2_LIBRARIES} ${LZMA_LDFLAGS} )
|
||||||
|
+ target_link_libraries( zipdir ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LZMA_LDFLAGS} )
|
||||||
|
set( CROSS_EXPORTS ${CROSS_EXPORTS} zipdir PARENT_SCOPE )
|
||||||
|
endif()
|
||||||
|
Index: gzdoom-g4.11.3/tools/zipdir/zipdir.c
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/tools/zipdir/zipdir.c
|
||||||
|
+++ gzdoom-g4.11.3/tools/zipdir/zipdir.c
|
||||||
|
@@ -46,7 +46,7 @@
|
||||||
|
#include <errno.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <time.h>
|
||||||
|
-#include <miniz.h>
|
||||||
|
+#include "zlib.h"
|
||||||
|
#include "bzlib.h"
|
||||||
|
#include "LzmaEnc.h"
|
||||||
|
#include "7zVersion.h"
|
||||||
|
Index: gzdoom-g4.11.3/vcpkg.json
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.11.3.orig/vcpkg.json
|
||||||
|
+++ gzdoom-g4.11.3/vcpkg.json
|
||||||
|
@@ -28,6 +28,10 @@
|
||||||
|
},
|
||||||
|
"dependencies": [
|
||||||
|
{
|
||||||
|
+ "name": "zlib",
|
||||||
|
+ "platform": "!windows | (windows & static & staticcrt)"
|
||||||
|
+ },
|
||||||
|
+ {
|
||||||
|
"name": "bzip2",
|
||||||
|
"platform": "!windows | (windows & static & staticcrt)"
|
||||||
|
},
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:8702522c05048dfd4a765c6ac82a270d8bd0942e813d5bc6f4b69795a5d23a20
|
|
||||||
size 24319337
|
|
3
g4.11.3.tar.gz
Normal file
3
g4.11.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5943dba50da20ff94f1fcc415132672d42a15917c571b1c2b7ceefe14935f5d5
|
||||||
|
size 24354699
|
19
gcc13.diff
19
gcc13.diff
@ -1,19 +0,0 @@
|
|||||||
From: Jan Engelhardt
|
|
||||||
Date: 2023-03-30 23:52:45.534338531 +0200
|
|
||||||
Upstream: https://github.com/ZDoom/gzdoom/pull/2040
|
|
||||||
|
|
||||||
This is the g4.10.0 version of the change.
|
|
||||||
|
|
||||||
diff --git a/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h b/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h
|
|
||||||
index fd4472286..db0b94f4e 100644
|
|
||||||
--- a/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h
|
|
||||||
+++ b/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h
|
|
||||||
@@ -104,6 +104,8 @@ Documentation of all members: vk_mem_alloc.h
|
|
||||||
- [Source repository on GitHub](https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator)
|
|
||||||
*/
|
|
||||||
|
|
||||||
+#include <stdio.h>
|
|
||||||
+
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
@ -7,11 +7,11 @@ Unbundle discord-rpc.
|
|||||||
libraries/discordrpc/src/CMakeLists.txt | 2 +-
|
libraries/discordrpc/src/CMakeLists.txt | 2 +-
|
||||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
Index: gzdoom-g4.8.1/CMakeLists.txt
|
Index: gzdoom-g4.11.3/CMakeLists.txt
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gzdoom-g4.8.1.orig/CMakeLists.txt
|
--- gzdoom-g4.11.3.orig/CMakeLists.txt
|
||||||
+++ gzdoom-g4.8.1/CMakeLists.txt
|
+++ gzdoom-g4.11.3/CMakeLists.txt
|
||||||
@@ -329,9 +329,9 @@ if (HAVE_VULKAN)
|
@@ -356,9 +356,9 @@ if (HAVE_VULKAN)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory( libraries/discordrpc EXCLUDE_FROM_ALL )
|
add_subdirectory( libraries/discordrpc EXCLUDE_FROM_ALL )
|
||||||
@ -22,12 +22,12 @@ Index: gzdoom-g4.8.1/CMakeLists.txt
|
|||||||
+set( DRPC_LIBRARIES -ldiscord-rpc )
|
+set( DRPC_LIBRARIES -ldiscord-rpc )
|
||||||
+set( DRPC_LIBRARY -ldiscord-rpc )
|
+set( DRPC_LIBRARY -ldiscord-rpc )
|
||||||
|
|
||||||
if( ZLIB_FOUND AND NOT FORCE_INTERNAL_ZLIB )
|
if( HAVE_VM_JIT AND UNIX )
|
||||||
message( STATUS "Using system zlib, includes found at ${ZLIB_INCLUDE_DIR}" )
|
check_symbol_exists( "backtrace" "execinfo.h" HAVE_BACKTRACE )
|
||||||
Index: gzdoom-g4.8.1/libraries/discordrpc/src/CMakeLists.txt
|
Index: gzdoom-g4.11.3/libraries/discordrpc/src/CMakeLists.txt
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gzdoom-g4.8.1.orig/libraries/discordrpc/src/CMakeLists.txt
|
--- gzdoom-g4.11.3.orig/libraries/discordrpc/src/CMakeLists.txt
|
||||||
+++ gzdoom-g4.8.1/libraries/discordrpc/src/CMakeLists.txt
|
+++ gzdoom-g4.11.3/libraries/discordrpc/src/CMakeLists.txt
|
||||||
@@ -28,7 +28,7 @@ endif(${BUILD_SHARED_LIBS})
|
@@ -28,7 +28,7 @@ endif(${BUILD_SHARED_LIBS})
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
add_definitions(-DDISCORD_WINDOWS)
|
add_definitions(-DDISCORD_WINDOWS)
|
||||||
|
@ -9,11 +9,11 @@ Use LZMA system libraries instead of bundled code.
|
|||||||
tools/zipdir/CMakeLists.txt | 4 ++--
|
tools/zipdir/CMakeLists.txt | 4 ++--
|
||||||
3 files changed, 6 insertions(+), 6 deletions(-)
|
3 files changed, 6 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
Index: gzdoom-g4.8.0/CMakeLists.txt
|
Index: gzdoom-g4.11.0/CMakeLists.txt
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gzdoom-g4.8.0.orig/CMakeLists.txt
|
--- gzdoom-g4.11.0.orig/CMakeLists.txt
|
||||||
+++ gzdoom-g4.8.0/CMakeLists.txt
|
+++ gzdoom-g4.11.0/CMakeLists.txt
|
||||||
@@ -17,6 +17,7 @@ endif()
|
@@ -50,6 +50,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
|
||||||
list( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )
|
list( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )
|
||||||
include( FindPackageHandleStandardArgs )
|
include( FindPackageHandleStandardArgs )
|
||||||
@ -21,7 +21,7 @@ Index: gzdoom-g4.8.0/CMakeLists.txt
|
|||||||
|
|
||||||
# Support cross compiling
|
# Support cross compiling
|
||||||
option( FORCE_CROSSCOMPILE "Turn on cross compiling." NO )
|
option( FORCE_CROSSCOMPILE "Turn on cross compiling." NO )
|
||||||
@@ -392,7 +393,7 @@ else()
|
@@ -396,7 +397,7 @@ else()
|
||||||
set( BZIP2_LIBRARY bz2 )
|
set( BZIP2_LIBRARY bz2 )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -30,49 +30,49 @@ Index: gzdoom-g4.8.0/CMakeLists.txt
|
|||||||
|
|
||||||
if( NOT CMAKE_CROSSCOMPILING )
|
if( NOT CMAKE_CROSSCOMPILING )
|
||||||
if( NOT CROSS_EXPORTS )
|
if( NOT CROSS_EXPORTS )
|
||||||
@@ -412,7 +413,6 @@ install(DIRECTORY docs/
|
@@ -416,7 +417,6 @@ install(DIRECTORY docs/
|
||||||
|
|
||||||
option( DYN_OPENAL "Dynamically load OpenAL" ON )
|
option( DYN_OPENAL "Dynamically load OpenAL" ON )
|
||||||
|
|
||||||
-add_subdirectory( libraries/lzma )
|
-add_subdirectory( libraries/lzma )
|
||||||
|
add_subdirectory( libraries/miniz )
|
||||||
add_subdirectory( tools )
|
add_subdirectory( tools )
|
||||||
add_subdirectory( libraries/gdtoa )
|
|
||||||
add_subdirectory( wadsrc )
|
add_subdirectory( wadsrc )
|
||||||
Index: gzdoom-g4.8.0/src/CMakeLists.txt
|
Index: gzdoom-g4.11.0/src/CMakeLists.txt
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gzdoom-g4.8.0.orig/src/CMakeLists.txt
|
--- gzdoom-g4.11.0.orig/src/CMakeLists.txt
|
||||||
+++ gzdoom-g4.8.0/src/CMakeLists.txt
|
+++ gzdoom-g4.11.0/src/CMakeLists.txt
|
||||||
@@ -427,7 +427,7 @@ else()
|
@@ -387,7 +387,7 @@ if (TARGET WebP::webp)
|
||||||
message( SEND_ERROR "Could not find libvpx" )
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
-include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" "${JPEG_INCLUDE_DIR}" "${ZMUSIC_INCLUDE_DIR}" "${DRPC_INCLUDE_DIR}")
|
-include_directories( SYSTEM "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" "${ZMUSIC_INCLUDE_DIR}" "${DRPC_INCLUDE_DIR}")
|
||||||
+include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIRS}" "${JPEG_INCLUDE_DIR}" "${ZMUSIC_INCLUDE_DIR}" "${DRPC_INCLUDE_DIR}")
|
+include_directories( SYSTEM "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIRS}" "${ZMUSIC_INCLUDE_DIR}" "${DRPC_INCLUDE_DIR}")
|
||||||
|
|
||||||
if( ${HAVE_VM_JIT} )
|
if( ${HAVE_VM_JIT} )
|
||||||
add_definitions( -DHAVE_VM_JIT )
|
add_definitions( -DHAVE_VM_JIT )
|
||||||
@@ -1297,7 +1297,7 @@ if( UNIX )
|
@@ -1252,7 +1252,7 @@ if( UNIX )
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
-target_link_libraries( zdoom ${PROJECT_LIBRARIES} gdtoa lzma ${ZMUSIC_LIBRARIES} )
|
-target_link_libraries( zdoom ${PROJECT_LIBRARIES} lzma ${ZMUSIC_LIBRARIES} )
|
||||||
+target_link_libraries( zdoom ${PROJECT_LIBRARIES} gdtoa ${LZMA_LIBRARIES} ${ZMUSIC_LIBRARIES} )
|
+target_link_libraries( zdoom ${PROJECT_LIBRARIES} ${LZMA_LIBRARIES} ${ZMUSIC_LIBRARIES} )
|
||||||
|
|
||||||
include_directories( .
|
include_directories(
|
||||||
common/audio/sound
|
BEFORE
|
||||||
Index: gzdoom-g4.8.0/tools/zipdir/CMakeLists.txt
|
Index: gzdoom-g4.11.0/tools/zipdir/CMakeLists.txt
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gzdoom-g4.8.0.orig/tools/zipdir/CMakeLists.txt
|
--- gzdoom-g4.11.0.orig/tools/zipdir/CMakeLists.txt
|
||||||
+++ gzdoom-g4.8.0/tools/zipdir/CMakeLists.txt
|
+++ gzdoom-g4.11.0/tools/zipdir/CMakeLists.txt
|
||||||
@@ -1,9 +1,9 @@
|
@@ -1,9 +1,9 @@
|
||||||
cmake_minimum_required( VERSION 3.1.0 )
|
cmake_minimum_required( VERSION 3.16 )
|
||||||
|
|
||||||
if( NOT CMAKE_CROSSCOMPILING )
|
if( NOT CMAKE_CROSSCOMPILING )
|
||||||
- include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" )
|
- include_directories( SYSTEM "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" )
|
||||||
+ include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIRS}" )
|
+ include_directories( SYSTEM "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIRS}" )
|
||||||
add_executable( zipdir
|
add_executable( zipdir
|
||||||
zipdir.c )
|
zipdir.c )
|
||||||
- target_link_libraries( zipdir ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} lzma )
|
- target_link_libraries( zipdir miniz ${BZIP2_LIBRARIES} lzma )
|
||||||
+ target_link_libraries( zipdir ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LZMA_LDFLAGS})
|
+ target_link_libraries( zipdir miniz ${BZIP2_LIBRARIES} ${LZMA_LDFLAGS} )
|
||||||
set( CROSS_EXPORTS ${CROSS_EXPORTS} zipdir PARENT_SCOPE )
|
set( CROSS_EXPORTS ${CROSS_EXPORTS} zipdir PARENT_SCOPE )
|
||||||
endif()
|
endif()
|
||||||
|
@ -1,61 +0,0 @@
|
|||||||
From: Jan Engelhardt <jengelh@inai.de>
|
|
||||||
Date: 2019-04-13 15:02:22.799297208 +0200
|
|
||||||
|
|
||||||
Use Vulkan/glslang/spirv system libraries instead of bundled code.
|
|
||||||
|
|
||||||
---
|
|
||||||
CMakeLists.txt | 4 +---
|
|
||||||
src/CMakeLists.txt | 2 +-
|
|
||||||
src/common/rendering/vulkan/system/vk_builders.cpp | 4 ++++
|
|
||||||
3 files changed, 6 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
Index: gzdoom-g4.8.2/CMakeLists.txt
|
|
||||||
===================================================================
|
|
||||||
--- gzdoom-g4.8.2.orig/CMakeLists.txt
|
|
||||||
+++ gzdoom-g4.8.2/CMakeLists.txt
|
|
||||||
@@ -325,9 +325,7 @@ option(FORCE_INTERNAL_ASMJIT "Use intern
|
|
||||||
mark_as_advanced( FORCE_INTERNAL_ASMJIT )
|
|
||||||
|
|
||||||
if (HAVE_VULKAN)
|
|
||||||
- add_subdirectory( libraries/glslang/glslang)
|
|
||||||
- add_subdirectory( libraries/glslang/spirv )
|
|
||||||
- add_subdirectory( libraries/glslang/OGLCompilersDLL )
|
|
||||||
+ include_directories(/usr/include/glslang/Public /usr/include/SPIRV)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_subdirectory( libraries/discordrpc EXCLUDE_FROM_ALL )
|
|
||||||
Index: gzdoom-g4.8.2/src/CMakeLists.txt
|
|
||||||
===================================================================
|
|
||||||
--- gzdoom-g4.8.2.orig/src/CMakeLists.txt
|
|
||||||
+++ gzdoom-g4.8.2/src/CMakeLists.txt
|
|
||||||
@@ -368,7 +368,7 @@ add_custom_target( revision_check ALL
|
|
||||||
|
|
||||||
set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${BZIP2_LIBRARIES}" "${CMAKE_DL_LIBS}" "${DRPC_LIBRARIES}")
|
|
||||||
if (HAVE_VULKAN)
|
|
||||||
- set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} "glslang" "SPIRV" "OGLCompiler")
|
|
||||||
+ set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} -lglslang -lSPIRV -lOGLCompiler)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# ZMUSIC
|
|
||||||
Index: gzdoom-g4.8.2/src/common/rendering/vulkan/system/vk_builders.cpp
|
|
||||||
===================================================================
|
|
||||||
--- gzdoom-g4.8.2.orig/src/common/rendering/vulkan/system/vk_builders.cpp
|
|
||||||
+++ gzdoom-g4.8.2/src/common/rendering/vulkan/system/vk_builders.cpp
|
|
||||||
@@ -25,6 +25,7 @@
|
|
||||||
#include "renderstyle.h"
|
|
||||||
#include <ShaderLang.h>
|
|
||||||
#include <GlslangToSpv.h>
|
|
||||||
+#include <glslang/build_info.h>
|
|
||||||
|
|
||||||
static const TBuiltInResource DefaultTBuiltInResource = {
|
|
||||||
/* .MaxLights = */ 32,
|
|
||||||
@@ -119,6 +120,9 @@ static const TBuiltInResource DefaultTBu
|
|
||||||
/* .maxTaskWorkGroupSizeY_NV = */ 1,
|
|
||||||
/* .maxTaskWorkGroupSizeZ_NV = */ 1,
|
|
||||||
/* .maxMeshViewCountNV = */ 4,
|
|
||||||
+#if (GLSLANG_VERSION_MAJOR == 11 && GLSLANG_VERSION_MINOR >= 12) || GLSLANG_VERSION_MAJOR > 11
|
|
||||||
+ 256, 256, 128, 128, 128, 128, 128, 128, 4,
|
|
||||||
+#endif
|
|
||||||
/* .maxDualSourceDrawBuffersEXT = */ 1,
|
|
||||||
|
|
||||||
/* .limits = */ {
|
|
@ -1,3 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 27 04:20:10 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Update to release 4.11.3
|
||||||
|
* Several new languages: Danish, Norwegian, Swedish and Turkish.
|
||||||
|
* Cleanup of Doom's and Chex Quest's small font to use proper
|
||||||
|
character heights for international support.
|
||||||
|
* Extended all fonts to be capable of handling all European
|
||||||
|
languages which are in common use.
|
||||||
|
* DSDHacked support.
|
||||||
|
* WebP and QOI support for textures.
|
||||||
|
* Sanitized the light mode selection to make it a first class
|
||||||
|
mapping feature by separating map dependent light mode setup
|
||||||
|
from performance related user preferences for the default
|
||||||
|
setting.
|
||||||
|
* Lots of new ZScript features.
|
||||||
|
- Delete gzdoom-vulkan.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 30 22:02:53 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
|
Thu Mar 30 22:02:53 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
17
gzdoom.spec
17
gzdoom.spec
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: gzdoom
|
Name: gzdoom
|
||||||
Version: 4.10.0
|
Version: 4.11.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A DOOM source port with graphic and modding extensions
|
Summary: A DOOM source port with graphic and modding extensions
|
||||||
License: GPL-3.0-only
|
License: GPL-3.0-only
|
||||||
@ -28,11 +28,10 @@ URL: https://zdoom.org/
|
|||||||
Source: https://github.com/zdoom/gzdoom/archive/g%version.tar.gz
|
Source: https://github.com/zdoom/gzdoom/archive/g%version.tar.gz
|
||||||
Patch1: gzdoom-waddir.patch
|
Patch1: gzdoom-waddir.patch
|
||||||
Patch2: gzdoom-lzma.patch
|
Patch2: gzdoom-lzma.patch
|
||||||
Patch5: gzdoom-vulkan.patch
|
|
||||||
Patch6: gzdoom-discord.patch
|
Patch6: gzdoom-discord.patch
|
||||||
Patch8: 0001-removed-some-32bit-only-CMake-code.patch
|
Patch8: 0001-removed-some-32bit-only-CMake-code.patch
|
||||||
Patch9: 0001-Revert-use-static_assert-to-make-32-bit-builds-fail.patch
|
Patch9: 0001-Revert-use-static_assert-to-make-32-bit-builds-fail.patch
|
||||||
Patch10: gcc13.diff
|
Patch10: 0001-Revert-Switch-to-miniz-from-zlib.patch
|
||||||
BuildRequires: cmake >= 2.8.7
|
BuildRequires: cmake >= 2.8.7
|
||||||
BuildRequires: discord-rpc-devel
|
BuildRequires: discord-rpc-devel
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -45,17 +44,13 @@ BuildRequires: pkgconfig(clzma) >= 17.01
|
|||||||
BuildRequires: pkgconfig(flac)
|
BuildRequires: pkgconfig(flac)
|
||||||
BuildRequires: pkgconfig(gl)
|
BuildRequires: pkgconfig(gl)
|
||||||
BuildRequires: pkgconfig(gtk+-3.0)
|
BuildRequires: pkgconfig(gtk+-3.0)
|
||||||
|
BuildRequires: pkgconfig(libwebp)
|
||||||
BuildRequires: pkgconfig(openal)
|
BuildRequires: pkgconfig(openal)
|
||||||
BuildRequires: pkgconfig(sdl2) >= 2.0.6
|
BuildRequires: pkgconfig(sdl2) >= 2.0.6
|
||||||
BuildRequires: pkgconfig(vpx)
|
BuildRequires: pkgconfig(vpx)
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
%if 0%{?suse_version} >= 1550
|
|
||||||
BuildRequires: glslang-devel >= 11.10
|
|
||||||
BuildRequires: pkgconfig(vulkan) >= 1.2.189
|
|
||||||
%else
|
|
||||||
Provides: bundled(glslang) = 11.10.0
|
Provides: bundled(glslang) = 11.10.0
|
||||||
Provides: bundled(vulkan) = 1.2.189.1
|
Provides: bundled(vulkan) = 1.2.189.1
|
||||||
%endif
|
|
||||||
Suggests: freedoom
|
Suggests: freedoom
|
||||||
Provides: qzdoom = 1.3.0
|
Provides: qzdoom = 1.3.0
|
||||||
Provides: zdoom = 2.8.1
|
Provides: zdoom = 2.8.1
|
||||||
@ -79,12 +74,6 @@ The executables hard-require SSE2 on i686 currently.
|
|||||||
%autosetup -n %name-g%version -p1
|
%autosetup -n %name-g%version -p1
|
||||||
perl -i -pe 's{__DATE__}{"does not matter when"}g' src/common/platform/posix/sdl/i_main.cpp
|
perl -i -pe 's{__DATE__}{"does not matter when"}g' src/common/platform/posix/sdl/i_main.cpp
|
||||||
perl -i -pe 's{<unknown version>}{%version}g' tools/updaterevision/UpdateRevision.cmake
|
perl -i -pe 's{<unknown version>}{%version}g' tools/updaterevision/UpdateRevision.cmake
|
||||||
mkdir -p extra_include/glslang
|
|
||||||
%if 0%{?suse_version} >= 1550
|
|
||||||
rm -Rf glslang src/common/rendering/vulkan/thirdparty/vulkan
|
|
||||||
%else
|
|
||||||
%patch -P 5 -R -p1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# There is handcrafted assembler, which LTO does not play nice with.
|
# There is handcrafted assembler, which LTO does not play nice with.
|
||||||
|
Loading…
Reference in New Issue
Block a user