cdogs-sdl/fix-build.patch
Ferdinand Thiessen 8557fceb33 - Update to version 2.2.0
* Add new game icons.
  * Fix game freeze when loading shareware wolf3d campaign.
  * Fix player 1 controls affecting others in player selection.
  * Fix joystick not working in pause menu.
  * Fix damage text not resetting.
  * Fix automaps for very large levels.
  * Fix repeated inputs when switching in/out of pause menu.
  * Fix uncommon crash when live background map is too small.
  * Fix crash when exiting some campaigns with custom ammo.
  * Improve menus by merging redefine keys and controls menu.

OBS-URL: https://build.opensuse.org/package/show/games/cdogs-sdl?expand=0&rev=56
2024-12-11 08:15:43 +00:00

23 lines
628 B
Diff

Index: cdogs-sdl-1.4.0/CMakeLists.txt
===================================================================
--- cdogs-sdl-1.4.0.orig/CMakeLists.txt
+++ cdogs-sdl-1.4.0/CMakeLists.txt
@@ -147,6 +147,9 @@ if(NOT DEFINED CDOGS_DATA_DIR)
endif()
endif()
message("Data dir is ${CDOGS_DATA_DIR}")
+if(NOT DEFINED DATA_INSTALL_DIR)
+ set(DATA_INSTALL_DIR "${CDOGS_DATA_DIR}")
+endif()
if(WIN32)
set(CDOGS_CFG_DIR "C-Dogs SDL/")
else()
@@ -199,7 +202,6 @@ elseif(APPLE)
set(INSTALL_PREFIX "cdogs-sdl")
else()
set(LIB_EXTENSION ".so")
- set(DATA_INSTALL_DIR ".")
endif()
# Since Debian wants games binaries in /usr/games