diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-12-04 01:04:52 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-12-04 01:30:07 +0000 |
commit | 842c49101f58021b9354b0f92b70705a272a3d6e (patch) | |
tree | 43d2a78ffe166fb5d4be9dad202ccae1564b3dbc /user/supertux/cmake32.patch | |
parent | d262cc5c0f9168fc07f9c844600ec06d8330a21e (diff) | |
download | packages-842c49101f58021b9354b0f92b70705a272a3d6e.tar.gz packages-842c49101f58021b9354b0f92b70705a272a3d6e.tar.bz2 packages-842c49101f58021b9354b0f92b70705a272a3d6e.tar.xz packages-842c49101f58021b9354b0f92b70705a272a3d6e.zip |
user/supertux: Fix SDL2 detection on 32-bit CPUs
No clue why they were special-casing detection like this.
Fixes: #870
Diffstat (limited to 'user/supertux/cmake32.patch')
-rw-r--r-- | user/supertux/cmake32.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/user/supertux/cmake32.patch b/user/supertux/cmake32.patch new file mode 100644 index 000000000..bc31de62c --- /dev/null +++ b/user/supertux/cmake32.patch @@ -0,0 +1,22 @@ +There is no reason to special-case finding SDL2 for 32-bit, and it doesn't +work effectively anyway. + +--- SuperTux-v0.6.3-Source/CMakeLists.txt.old 2021-12-22 23:01:57.000000000 +0000 ++++ SuperTux-v0.6.3-Source/CMakeLists.txt 2022-12-04 00:59:27.057071029 +0000 +@@ -232,16 +232,6 @@ + find_library(SDL2_LIBRARIES SDL2) + find_library(SDL2IMAGE_LIBRARIES SDL2_image) + message(STATUS "SDL2_INCLUDE_DIR is ${SDL2_INCLUDE_DIRS}") +- elseif (CMAKE_SIZEOF_VOID_P EQUAL 4) +- # 32-bit +- find_library(SDL2_LIBRARIES SDL2) +- find_library(SDL2IMAGE_LIBRARIES SDL2_image) +- find_path(SDL2_INCLUDE_DIRS SDL2/SDL.h) +- find_path(SDL2IMAGE_INCLUDE_DIRS SDL2/SDL_image.h) +- set(SDL2_INCLUDE_DIRS ${SDL2_INCLUDE_DIRS}/SDL2) +- set(SDL2IMAGE_INCLUDE_DIRS ${SDL2IMAGE_INCLUDE_DIRS}/SDL2) +- message(STATUS "SDL LIBS: ${SDL2_LIBRARIES}") +- message(STATUS "SDL INCL: ${SDL2_INCLUDE_DIRS}") + else() + # 64-bit + include(FindPkgConfig) |