forked from pool/gzdoom
Accepting request 972295 from games
- Reenable use of system vulkan libraries on Tumbleweed. OBS-URL: https://build.opensuse.org/request/show/972295 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gzdoom?expand=0&rev=21
This commit is contained in:
commit
d1729ac256
@ -4,15 +4,16 @@ Date: 2019-04-13 15:02:22.799297208 +0200
|
|||||||
Use Vulkan/glslang/spirv system libraries instead of bundled code.
|
Use Vulkan/glslang/spirv system libraries instead of bundled code.
|
||||||
|
|
||||||
---
|
---
|
||||||
CMakeLists.txt | 4 +---
|
CMakeLists.txt | 4 +---
|
||||||
src/CMakeLists.txt | 2 +-
|
src/CMakeLists.txt | 2 +-
|
||||||
2 files changed, 2 insertions(+), 4 deletions(-)
|
src/common/rendering/vulkan/system/vk_builders.cpp | 4 ++++
|
||||||
|
3 files changed, 6 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
Index: gzdoom-g4.4.0/CMakeLists.txt
|
Index: gzdoom-g4.7.1/CMakeLists.txt
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gzdoom-g4.4.0.orig/CMakeLists.txt
|
--- gzdoom-g4.7.1.orig/CMakeLists.txt
|
||||||
+++ gzdoom-g4.4.0/CMakeLists.txt
|
+++ gzdoom-g4.7.1/CMakeLists.txt
|
||||||
@@ -307,9 +307,7 @@ option(FORCE_INTERNAL_ASMJIT "Use intern
|
@@ -324,9 +324,7 @@ option(FORCE_INTERNAL_ASMJIT "Use intern
|
||||||
mark_as_advanced( FORCE_INTERNAL_ASMJIT )
|
mark_as_advanced( FORCE_INTERNAL_ASMJIT )
|
||||||
|
|
||||||
if (HAVE_VULKAN)
|
if (HAVE_VULKAN)
|
||||||
@ -23,11 +24,11 @@ Index: gzdoom-g4.4.0/CMakeLists.txt
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if( ZLIB_FOUND AND NOT FORCE_INTERNAL_ZLIB )
|
if( ZLIB_FOUND AND NOT FORCE_INTERNAL_ZLIB )
|
||||||
Index: gzdoom-g4.4.0/src/CMakeLists.txt
|
Index: gzdoom-g4.7.1/src/CMakeLists.txt
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gzdoom-g4.4.0.orig/src/CMakeLists.txt
|
--- gzdoom-g4.7.1.orig/src/CMakeLists.txt
|
||||||
+++ gzdoom-g4.4.0/src/CMakeLists.txt
|
+++ gzdoom-g4.7.1/src/CMakeLists.txt
|
||||||
@@ -435,7 +435,7 @@ add_custom_target( revision_check ALL
|
@@ -404,7 +404,7 @@ add_custom_target( revision_check ALL
|
||||||
|
|
||||||
set( ZDOOM_LIBS ${ZDOOM_LIBS} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${BZIP2_LIBRARIES}" "${CMAKE_DL_LIBS}" )
|
set( ZDOOM_LIBS ${ZDOOM_LIBS} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${BZIP2_LIBRARIES}" "${CMAKE_DL_LIBS}" )
|
||||||
if (HAVE_VULKAN)
|
if (HAVE_VULKAN)
|
||||||
@ -36,3 +37,25 @@ Index: gzdoom-g4.4.0/src/CMakeLists.txt
|
|||||||
endif()
|
endif()
|
||||||
include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIRS}" "${JPEG_INCLUDE_DIR}" "${ZMUSIC_INCLUDE_DIR}" )
|
include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIRS}" "${JPEG_INCLUDE_DIR}" "${ZMUSIC_INCLUDE_DIR}" )
|
||||||
|
|
||||||
|
Index: gzdoom-g4.7.1/src/common/rendering/vulkan/system/vk_builders.cpp
|
||||||
|
===================================================================
|
||||||
|
--- gzdoom-g4.7.1.orig/src/common/rendering/vulkan/system/vk_builders.cpp
|
||||||
|
+++ gzdoom-g4.7.1/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 defined(GLSLANG_VERSION_MAJOR) && GLSLANG_VERSION_MAJOR >= 11
|
||||||
|
+ /* .maxDualSourceDrawBuffersEXT = */ 4,
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
/* .limits = */ {
|
||||||
|
/* .nonInductiveForLoops = */ 1,
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 23 01:04:05 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Reenable use of system vulkan libraries on Tumbleweed.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 15 23:08:58 UTC 2022 - Cristian Rodríguez <crrodriguez@opensuse.org>
|
Fri Apr 15 23:08:58 UTC 2022 - Cristian Rodríguez <crrodriguez@opensuse.org>
|
||||||
|
|
||||||
|
20
gzdoom.spec
20
gzdoom.spec
@ -33,6 +33,7 @@ Patch4: gzdoom-sdlbug.patch
|
|||||||
Patch5: gzdoom-vulkan.patch
|
Patch5: gzdoom-vulkan.patch
|
||||||
BuildRequires: cmake >= 2.8.7
|
BuildRequires: cmake >= 2.8.7
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: glslang-devel
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
@ -44,14 +45,8 @@ BuildRequires: pkgconfig(gl)
|
|||||||
BuildRequires: pkgconfig(gtk+-3.0)
|
BuildRequires: pkgconfig(gtk+-3.0)
|
||||||
BuildRequires: pkgconfig(openal)
|
BuildRequires: pkgconfig(openal)
|
||||||
BuildRequires: pkgconfig(sdl2) >= 2.0.6
|
BuildRequires: pkgconfig(sdl2) >= 2.0.6
|
||||||
|
BuildRequires: pkgconfig(vulkan)
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
%if 0%{?sle_version} >= 150200
|
|
||||||
BuildRequires: glslang-devel >= 6.3
|
|
||||||
BuildRequires: pkgconfig(vulkan) >= 1.1.77
|
|
||||||
%else
|
|
||||||
Provides: bundled(glslang) = 8.13.3559
|
|
||||||
Provides: bundled(vulkan) = 1.1.114
|
|
||||||
%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
|
||||||
@ -73,13 +68,13 @@ GZDoom is a port (a modification) of the original Doom source code, featuring:
|
|||||||
* Demo record/playback of classic and Boom demos is not supported.
|
* Demo record/playback of classic and Boom demos is not supported.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn %name-g%version
|
%autosetup -n %name-g%version -p1
|
||||||
%patch -P 1 -P 2 -P 3 -P 4 -p1
|
|
||||||
%if 0%{?sle_version} >= 150200
|
|
||||||
%patch -P 5 -p1
|
|
||||||
rm -Rf glslang src/common/rendering/vulkan/thirdparty/vulkan
|
rm -Rf glslang src/common/rendering/vulkan/thirdparty/vulkan
|
||||||
%endif
|
|
||||||
perl -i -pe 's{__DATE__}{""}g' src/common/platform/posix/sdl/i_main.cpp
|
perl -i -pe 's{__DATE__}{""}g' src/common/platform/posix/sdl/i_main.cpp
|
||||||
|
mkdir -p extra_include/glslang
|
||||||
|
%if 0%{?suse_version} && 0%{?suse_version} < 1550
|
||||||
|
touch extra_include/glslang/build_info.h
|
||||||
|
%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.
|
||||||
@ -91,6 +86,7 @@ perl -i -pe 's{__DATE__}{""}g' src/common/platform/posix/sdl/i_main.cpp
|
|||||||
export CFLAGS="%optflags -msse -msse2"
|
export CFLAGS="%optflags -msse -msse2"
|
||||||
export CXXFLAGS="%optflags -msse -msse2"
|
export CXXFLAGS="%optflags -msse -msse2"
|
||||||
%endif
|
%endif
|
||||||
|
export CXXFLAGS="$CXXFLAGS -I$PWD/extra_include"
|
||||||
%cmake -DNO_STRIP=1 \
|
%cmake -DNO_STRIP=1 \
|
||||||
-DCMAKE_SHARED_LINKER_FLAGS="" \
|
-DCMAKE_SHARED_LINKER_FLAGS="" \
|
||||||
-DCMAKE_EXE_LINKER_FLAGS="" -DCMAKE_MODULE_LINKER_FLAGS="" \
|
-DCMAKE_EXE_LINKER_FLAGS="" -DCMAKE_MODULE_LINKER_FLAGS="" \
|
||||||
|
Loading…
Reference in New Issue
Block a user