Files
banan-os/ports/SuperTux/patches/0001-fix-cmake.patch
Bananymous c7eb2dbdf3 ports: Replace SDL2 with sdl2-compat
There is no need to keep two SDL versions around
2026-07-05 00:24:20 +03:00

33 lines
1.1 KiB
Diff

--- SuperTux-0.6.3/CMakeLists.txt 2021-12-23 01:01:57.000000000 +0200
+++ SuperTux-0.6.3-x86_64/CMakeLists.txt 2026-07-04 22:00:48.125314950 +0300
@@ -171,7 +171,7 @@
else(ENABLE_BOOST_STATIC_LIBS)
set(Boost_USE_STATIC_LIBS FALSE)
endif(ENABLE_BOOST_STATIC_LIBS)
-find_package(Boost REQUIRED COMPONENTS filesystem system date_time locale)
+find_package(Boost REQUIRED COMPONENTS filesystem date_time locale)
include_directories(SYSTEM ${Boost_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIRS})
@@ -507,6 +507,7 @@
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
-DCMAKE_INSTALL_PREFIX=${SQUIRREL_PREFIX}
+ -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
-DINSTALL_INC_DIR=include
-DCMAKE_POSITION_INDEPENDENT_CODE=ON)
@@ -1022,11 +1023,7 @@
if(NOT EMSCRIPTEN)
if(HAVE_LIBCURL)
- if(VCPKG_BUILD)
- target_link_libraries(supertux2_lib PUBLIC ${CURL_LIBRARIES})
- else()
- target_link_libraries(supertux2_lib PUBLIC ${CURL_LIBRARY})
- endif()
+ target_link_libraries(supertux2_lib PUBLIC ${CURL_LIBRARIES})
endif(HAVE_LIBCURL)
endif(NOT EMSCRIPTEN)