mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-27 06:42:14 -05:00
707acc4cfb
* gnu/packages/games.scm (supertux): Update to 0.6.3. [inputs] Sort list and add glm. * gnu/packages/patches/supertux-unbundle-squirrel.patch: Adjust patch to apply with upstream changes. Signed-off-by: Leo Famulari <leo@famulari.name>
56 lines
3 KiB
Diff
56 lines
3 KiB
Diff
--- a/CMakeLists.txt 2022-01-05 18:51:17.828392874 +0100
|
|
+++ b/CMakeLists.txt 2022-01-05 18:54:50.826717830 +0100
|
|
@@ -487,48 +487,15 @@
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/ppc)
|
|
endif()
|
|
|
|
-
|
|
-## Also build external/squirrel
|
|
-
|
|
-if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/external/squirrel/CMakeLists.txt)
|
|
- message(FATAL_ERROR "squirrel submodule is not checked out or ${CMAKE_CURRENT_SOURCE_DIR}/external/squirrel/CMakeLists.txt is missing")
|
|
-endif()
|
|
-
|
|
set(SQUIRREL_PREFIX ${CMAKE_BINARY_DIR}/squirrel/ex)
|
|
-ExternalProject_Add(squirrel
|
|
- SOURCE_DIR "${CMAKE_SOURCE_DIR}/external/squirrel/"
|
|
- BUILD_BYPRODUCTS
|
|
- "${SQUIRREL_PREFIX}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}sqstdlib_static${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
|
- "${SQUIRREL_PREFIX}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}squirrel_static${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
|
- CMAKE_ARGS
|
|
- -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
|
- -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
|
|
- -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
|
|
- -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
|
|
- -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
|
|
- -DCMAKE_INSTALL_PREFIX=${SQUIRREL_PREFIX}
|
|
- -DINSTALL_INC_DIR=include
|
|
- -DCMAKE_POSITION_INDEPENDENT_CODE=ON)
|
|
-
|
|
-if(WIN32)
|
|
- add_library(squirrel_lib SHARED IMPORTED)
|
|
- set_target_properties(squirrel_lib PROPERTIES IMPORTED_LOCATION "${SQUIRREL_PREFIX}/bin/${CMAKE_SHARED_LIBRARY_PREFIX}squirrel${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
|
- set_target_properties(squirrel_lib PROPERTIES IMPORTED_IMPLIB "${SQUIRREL_PREFIX}/lib/squirrel${CMAKE_LINK_LIBRARY_SUFFIX}")
|
|
- add_library(sqstdlib_lib SHARED IMPORTED)
|
|
- set_target_properties(sqstdlib_lib PROPERTIES IMPORTED_LOCATION "${SQUIRREL_PREFIX}/bin/${CMAKE_SHARED_LIBRARY_PREFIX}sqstdlib${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
|
- set_target_properties(sqstdlib_lib PROPERTIES IMPORTED_IMPLIB "${SQUIRREL_PREFIX}/lib/sqstdlib${CMAKE_LINK_LIBRARY_SUFFIX}")
|
|
-
|
|
- #For debug run purposes
|
|
- configure_file("${CMAKE_CURRENT_SOURCE_DIR}/mk/msvc/run_supertux.bat.in" "${PROJECT_BINARY_DIR}/run_supertux.bat")
|
|
-else()
|
|
- add_library(squirrel_lib STATIC IMPORTED)
|
|
- set_target_properties(squirrel_lib PROPERTIES IMPORTED_LOCATION "${SQUIRREL_PREFIX}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}squirrel_static${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
|
- add_library(sqstdlib_lib STATIC IMPORTED)
|
|
- set_target_properties(sqstdlib_lib PROPERTIES IMPORTED_LOCATION "${SQUIRREL_PREFIX}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}sqstdlib_static${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
|
-endif()
|
|
|
|
include_directories(SYSTEM ${SQUIRREL_PREFIX}/include)
|
|
|
|
+add_library(squirrel_lib SHARED IMPORTED)
|
|
+set_target_properties(squirrel_lib PROPERTIES IMPORTED_LOCATION "${SQUIRREL_PREFIX}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}squirrel${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
|
+add_library(sqstdlib_lib SHARED IMPORTED)
|
|
+set_target_properties(sqstdlib_lib PROPERTIES IMPORTED_LOCATION "${SQUIRREL_PREFIX}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}sqstdlib${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
|
+
|
|
## Also build external/tinygettext
|
|
|
|
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/external/tinygettext/CMakeLists.txt)
|