SHA256
1
0
forked from pool/gzdoom
gzdoom/gzdoom-lzma.patch

74 lines
2.9 KiB
Diff
Raw Normal View History

---
CMakeLists.txt | 4 ++--
src/CMakeLists.txt | 4 ++--
tools/zipdir/CMakeLists.txt | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
Index: gzdoom-3.7.1/CMakeLists.txt
===================================================================
--- gzdoom-3.7.1.orig/CMakeLists.txt
+++ gzdoom-3.7.1/CMakeLists.txt
Accepting request 627526 from home:mnhauke:games - Update to version 3.5.0 * (modern branch only) Fullscreen is now borderless window (which, technically, it always has been, anyhow). Removed hacks which changed the desktop resolution in order to simulate exclusive fullscreen because they were a constant stability concern. * (modern branch only) fixed a performance regression with the software renderer, introduced by the recent changes to the video backend in 3.4. * Save item statistics - Items are now saved into save games and are displayed on the statfile * Upgrade libADLMIDI and libOPNMIDI * Large number of MinGW fixes * add tags for all Doom and Heretic monsters for mods that reveal monster names * various compatibility fixes for old maps and mods * fixed titlepic animation * Custom hardware shaders now can use custom texture units * default to "fullscreen" display * fixed a potential exploit with malformed WAD files. - Update to version 3.4.1 * fixed: redirect script access to the compatflags CVARs to their internal shadow variables. This is needed so that MAPINFO settings for these flags don't get ignored. * fixed: flag CVars in ZScript referenced wrong addresses * fixed: ZScript used the wrong variable for compatflags2. * fixed: remove ARM specific gl_es definition since it's not even really much different from the main line definition, anyhow * fixed generation of brightmaps for sprites. This forgot to take the added empty border for filtering improvement into account. * fixed ADynamicLight's shadowmap index must be reset when loading OBS-URL: https://build.opensuse.org/request/show/627526 OBS-URL: https://build.opensuse.org/package/show/games/gzdoom?expand=0&rev=8
2018-08-05 16:16:08 +02:00
@@ -12,6 +12,7 @@ endif()
list( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )
include( FindPackageHandleStandardArgs )
+include(FindPkgConfig)
Accepting request 627526 from home:mnhauke:games - Update to version 3.5.0 * (modern branch only) Fullscreen is now borderless window (which, technically, it always has been, anyhow). Removed hacks which changed the desktop resolution in order to simulate exclusive fullscreen because they were a constant stability concern. * (modern branch only) fixed a performance regression with the software renderer, introduced by the recent changes to the video backend in 3.4. * Save item statistics - Items are now saved into save games and are displayed on the statfile * Upgrade libADLMIDI and libOPNMIDI * Large number of MinGW fixes * add tags for all Doom and Heretic monsters for mods that reveal monster names * various compatibility fixes for old maps and mods * fixed titlepic animation * Custom hardware shaders now can use custom texture units * default to "fullscreen" display * fixed a potential exploit with malformed WAD files. - Update to version 3.4.1 * fixed: redirect script access to the compatflags CVARs to their internal shadow variables. This is needed so that MAPINFO settings for these flags don't get ignored. * fixed: flag CVars in ZScript referenced wrong addresses * fixed: ZScript used the wrong variable for compatflags2. * fixed: remove ARM specific gl_es definition since it's not even really much different from the main line definition, anyhow * fixed generation of brightmaps for sprites. This forgot to take the added empty border for filtering improvement into account. * fixed ADynamicLight's shadowmap index must be reset when loading OBS-URL: https://build.opensuse.org/request/show/627526 OBS-URL: https://build.opensuse.org/package/show/games/gzdoom?expand=0&rev=8
2018-08-05 16:16:08 +02:00
# Produce a warning if XP support will be missing when building a 32 bit target for MSVC.
if( MSVC )
@@ -336,7 +337,7 @@ else()
set( GME_LIBRARIES gme )
endif()
-set( LZMA_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/lzma/C" )
+pkg_check_modules(LZMA REQUIRED clzma)
if( NOT CMAKE_CROSSCOMPILING )
if( NOT CROSS_EXPORTS )
@@ -354,7 +355,6 @@ install(DIRECTORY docs/
DESTINATION ${INSTALL_DOCS_PATH}
COMPONENT "Documentation")
-add_subdirectory( lzma )
add_subdirectory( tools )
add_subdirectory( dumb )
add_subdirectory( gdtoa )
Index: gzdoom-3.7.1/src/CMakeLists.txt
===================================================================
--- gzdoom-3.7.1.orig/src/CMakeLists.txt
+++ gzdoom-3.7.1/src/CMakeLists.txt
@@ -461,7 +461,7 @@ add_custom_target( revision_check ALL
message( STATUS "Fluid synth libs: ${FLUIDSYNTH_LIBRARIES}" )
set( ZDOOM_LIBS ${ZDOOM_LIBS} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${BZIP2_LIBRARIES}" "${GME_LIBRARIES}" "${ASMJIT_LIBRARIES}" "${CMAKE_DL_LIBS}" )
-include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" "${JPEG_INCLUDE_DIR}" "${GME_INCLUDE_DIR}" "${ASMJIT_INCLUDE_DIR}" )
+include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIRS}" "${JPEG_INCLUDE_DIR}" "${GME_INCLUDE_DIR}" "${ASMJIT_INCLUDE_DIR}" )
if( SNDFILE_FOUND )
set( ZDOOM_LIBS ${ZDOOM_LIBS} "${SNDFILE_LIBRARIES}" )
@@ -1301,7 +1301,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS"
set( ZDOOM_LIBS ${ZDOOM_LIBS} nsl socket)
endif()
-target_link_libraries( zdoom ${ZDOOM_LIBS} gdtoa dumb lzma )
+target_link_libraries( zdoom ${ZDOOM_LIBS} gdtoa dumb ${LZMA_LIBRARIES})
include_directories( .
g_statusbar
Index: gzdoom-3.7.1/tools/zipdir/CMakeLists.txt
===================================================================
--- gzdoom-3.7.1.orig/tools/zipdir/CMakeLists.txt
+++ gzdoom-3.7.1/tools/zipdir/CMakeLists.txt
@@ -1,9 +1,9 @@
cmake_minimum_required( VERSION 2.8.7 )
if( NOT CMAKE_CROSSCOMPILING )
- include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" )
+ include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIRS}" )
add_executable( zipdir
zipdir.c )
- target_link_libraries( zipdir ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} lzma )
+ target_link_libraries( zipdir ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LZMA_LDFLAGS})
set( CROSS_EXPORTS ${CROSS_EXPORTS} zipdir PARENT_SCOPE )
endif()