summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/SpaceCadetPinball/Makefile2
-rw-r--r--games/SpaceCadetPinball/distinfo6
-rw-r--r--games/SpaceCadetPinball/files/patch-CMakeLists.txt25
-rw-r--r--games/SpaceCadetPinball/files/patch-SpaceCadetPinball_winmain.cpp11
4 files changed, 21 insertions, 23 deletions
diff --git a/games/SpaceCadetPinball/Makefile b/games/SpaceCadetPinball/Makefile
index a5d67bd2d8a9..bb476f4fc480 100644
--- a/games/SpaceCadetPinball/Makefile
+++ b/games/SpaceCadetPinball/Makefile
@@ -1,5 +1,5 @@
PORTNAME= SpaceCadetPinball
-PORTVERSION= 2.0
+PORTVERSION= 2.0.1
DISTVERSIONPREFIX= Release_
CATEGORIES= games
diff --git a/games/SpaceCadetPinball/distinfo b/games/SpaceCadetPinball/distinfo
index 83191bb3100d..ae8fd7bccbf0 100644
--- a/games/SpaceCadetPinball/distinfo
+++ b/games/SpaceCadetPinball/distinfo
@@ -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
diff --git a/games/SpaceCadetPinball/files/patch-CMakeLists.txt b/games/SpaceCadetPinball/files/patch-CMakeLists.txt
index b5954264b6f8..4bd7abecdb39 100644
--- a/games/SpaceCadetPinball/files/patch-CMakeLists.txt
+++ b/games/SpaceCadetPinball/files/patch-CMakeLists.txt
@@ -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()
diff --git a/games/SpaceCadetPinball/files/patch-SpaceCadetPinball_winmain.cpp b/games/SpaceCadetPinball/files/patch-SpaceCadetPinball_winmain.cpp
deleted file mode 100644
index 9784ec56667e..000000000000
--- a/games/SpaceCadetPinball/files/patch-SpaceCadetPinball_winmain.cpp
+++ /dev/null
@@ -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));