mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
games/SpaceCadetPinball: Update to 2.0.1
This commit is contained in:
parent
d281b7895b
commit
8e996ba49e
@ -1,5 +1,5 @@
|
||||
PORTNAME= SpaceCadetPinball
|
||||
PORTVERSION= 2.0
|
||||
PORTVERSION= 2.0.1
|
||||
DISTVERSIONPREFIX= Release_
|
||||
CATEGORIES= games
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1635784957
|
||||
SHA256 (k4zmu2a-SpaceCadetPinball-Release_2.0_GH0.tar.gz) = 619f66e4ba185979218772bf84c11e97cd44cd84adcc818c88aa9f2c2c8b4316
|
||||
SIZE (k4zmu2a-SpaceCadetPinball-Release_2.0_GH0.tar.gz) = 933826
|
||||
TIMESTAMP = 1641229815
|
||||
SHA256 (k4zmu2a-SpaceCadetPinball-Release_2.0.1_GH0.tar.gz) = 7b71815339c86a428d3569a5235c6ece0e2d4ff1d8025984ede6f772ca4f5423
|
||||
SIZE (k4zmu2a-SpaceCadetPinball-Release_2.0.1_GH0.tar.gz) = 1882629
|
||||
|
@ -1,4 +1,4 @@
|
||||
--- CMakeLists.txt.orig 2021-10-10 14:13:43 UTC
|
||||
--- CMakeLists.txt.orig 2021-12-29 06:46:09 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -24,8 +24,10 @@ set(SDL2_BUILDING_LIBRARY ON)
|
||||
|
||||
@ -12,19 +12,28 @@
|
||||
get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
|
||||
foreach(dir ${dirs})
|
||||
message(STATUS "Include dir='${dir}'")
|
||||
@@ -197,6 +199,8 @@ target_precompile_headers(SpaceCadetPinball
|
||||
)
|
||||
@@ -201,6 +203,8 @@ endif()
|
||||
|
||||
target_link_libraries(SpaceCadetPinball ${SDL2_LIBRARY} ${SDL2_MIXER_LIBRARY})
|
||||
+
|
||||
+install(TARGETS SpaceCadetPinball DESTINATION bin)
|
||||
|
||||
+install(TARGETS SpaceCadetPinball DESTINATION bin)
|
||||
+
|
||||
# On Windows, copy DLL to output
|
||||
if(WIN32)
|
||||
@@ -213,4 +217,4 @@ if(WIN32)
|
||||
list(GET SDL2_LIBRARY -1 SDL2_DLL_PATH)
|
||||
@@ -216,15 +220,4 @@ if(WIN32)
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SDL2_DLL_PATH}/SDL2.dll" $<TARGET_FILE_DIR:SpaceCadetPinball>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SDL2_MIXER_DLL_PATH}/SDL2_mixer.dll" $<TARGET_FILE_DIR:SpaceCadetPinball>
|
||||
)
|
||||
-endif()
|
||||
\ No newline at end of file
|
||||
+endif()
|
||||
-
|
||||
-if(UNIX AND NOT APPLE)
|
||||
- include(GNUInstallDirs)
|
||||
- install(TARGETS "${PROJECT_NAME}" RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||
- install(FILES "/Platform/Linux/${PROJECT_NAME}.desktop" DESTINATION "share/applications")
|
||||
- install(FILES "/Platform/Linux/${PROJECT_NAME}.metainfo.xml" DESTINATION "share/metainfo")
|
||||
- foreach(S 16 32 48 128 192)
|
||||
- install(FILES "${PROJECT_NAME}/Icon_${S}x${S}.png" DESTINATION
|
||||
- "share/icons/hicolor/${S}x${S}/apps" RENAME "${PROJECT_NAME}.png")
|
||||
- endforeach(S)
|
||||
endif()
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- SpaceCadetPinball/winmain.cpp.orig 2021-10-14 18:28:42 UTC
|
||||
+++ SpaceCadetPinball/winmain.cpp
|
||||
@@ -56,7 +56,7 @@ int winmain::WinMain(LPCSTR lpCmdLine)
|
||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Could not initialize SDL2", SDL_GetError(), nullptr);
|
||||
return 1;
|
||||
}
|
||||
- BasePath = SDL_GetBasePath();
|
||||
+ BasePath = SDL_strdup("./");
|
||||
|
||||
pinball::quickFlag = strstr(lpCmdLine, "-quick") != nullptr;
|
||||
DatFileName = options::get_string("Pinball Data", pinball::get_rc_string(168, 0));
|
Loading…
Reference in New Issue
Block a user