git: 22a491626483 - main - games/DDNet: update 18.4 → 18.5.1

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Thu, 19 Sep 2024 02:38:41 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=22a491626483f7be64edc77fa95c641501ea9609

commit 22a491626483f7be64edc77fa95c641501ea9609
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2024-09-11 15:50:47 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2024-09-19 02:03:21 +0000

    games/DDNet: update 18.4 → 18.5.1
---
 games/DDNet/Makefile                   |  3 +--
 games/DDNet/distinfo                   |  6 +++---
 games/DDNet/files/patch-CMakeLists.txt | 24 ++----------------------
 3 files changed, 6 insertions(+), 27 deletions(-)

diff --git a/games/DDNet/Makefile b/games/DDNet/Makefile
index 81865b6c584d..635b515f2ce1 100644
--- a/games/DDNet/Makefile
+++ b/games/DDNet/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	DDNet
-PORTVERSION=	18.4
-PORTREVISION=	2
+PORTVERSION=	18.5.1
 CATEGORIES=	games
 MASTER_SITES=	https://ddnet.tw/downloads/
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
diff --git a/games/DDNet/distinfo b/games/DDNet/distinfo
index caebb5310ec6..a36e0e3d6b4a 100644
--- a/games/DDNet/distinfo
+++ b/games/DDNet/distinfo
@@ -1,6 +1,6 @@
-TIMESTAMP = 1721743829
-SHA256 (DDNet-18.4.tar.xz) = 5fa37702b729924fb883f472f0e66a52782859404ab618a9f8b507b1d1ed3aa9
-SIZE (DDNet-18.4.tar.xz) = 36355964
+TIMESTAMP = 1726596481
+SHA256 (DDNet-18.5.1.tar.xz) = 7a247b4f1310981273056c10e7509b3a023965047c377170e377253d32189b7d
+SIZE (DDNet-18.5.1.tar.xz) = 36877148
 SHA256 (rust/crates/cc-1.0.73.crate) = 2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11
 SIZE (rust/crates/cc-1.0.73.crate) = 57880
 SHA256 (rust/crates/cxx-1.0.71.crate) = 5469a6f42296f4fd40789b397383718f9a0bd75d2f9b7cedbb249996811fba27
diff --git a/games/DDNet/files/patch-CMakeLists.txt b/games/DDNet/files/patch-CMakeLists.txt
index 77f4258c744b..e005c8cb2f4b 100644
--- a/games/DDNet/files/patch-CMakeLists.txt
+++ b/games/DDNet/files/patch-CMakeLists.txt
@@ -1,6 +1,6 @@
---- CMakeLists.txt.orig	2024-07-22 15:57:33 UTC
+--- CMakeLists.txt.orig	2024-09-02 21:39:42 UTC
 +++ CMakeLists.txt
-@@ -946,13 +946,6 @@ if(NOT CMAKE_OSX_ARCHITECTURES)
+@@ -948,13 +948,6 @@ if(NOT CMAKE_OSX_ARCHITECTURES)
      )
      list(APPEND RUST_OUTPUTS "${PROJECT_BINARY_DIR}/${CARGO_BUILD_DIR}/${LIBRARY_NAME}")
    endforeach()
@@ -14,23 +14,3 @@
  else()
    foreach(rust_target ${RUST_TARGETS})
      set(LIBRARY_NAME "${CMAKE_STATIC_LIBRARY_PREFIX}ddnet_${rust_target}${CMAKE_STATIC_LIBRARY_SUFFIX}")
-@@ -3117,10 +3110,16 @@ if(NOT DEV)
-     install(TARGETS ${TARGET_ANTIBOT} DESTINATION ${CMAKE_INSTALL_LIBDIR}/ddnet COMPONENT server)
-   endif()
-   install(TARGETS ${TARGETS_TOOLS} DESTINATION ${CMAKE_INSTALL_LIBDIR}/ddnet COMPONENT tools)
--  install(FILES other/ddnet.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications COMPONENT client)
-+  if(TARGET game-client)
-+    install(FILES other/ddnet.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications COMPONENT client)
-+  endif()
-   foreach(SIZE 16 32 48 256)
--    install(FILES other/icons/DDNet_${SIZE}x${SIZE}x32.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/${SIZE}x${SIZE}/apps RENAME ddnet.png COMPONENT client)
--    install(FILES other/icons/DDNet-Server_${SIZE}x${SIZE}x32.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/${SIZE}x${SIZE}/apps RENAME ddnet-server.png COMPONENT server)
-+    if(TARGET game-client)
-+      install(FILES other/icons/DDNet_${SIZE}x${SIZE}x32.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/${SIZE}x${SIZE}/apps RENAME ddnet.png COMPONENT client)
-+    endif()
-+    if(TARGET game-server)
-+      install(FILES other/icons/DDNet-Server_${SIZE}x${SIZE}x32.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/${SIZE}x${SIZE}/apps RENAME ddnet-server.png COMPONENT server)
-+    endif()
-   endforeach()
-   foreach(file ${VULKAN_SHADER_FILE_LIST})
-     install(FILES ${PROJECT_BINARY_DIR}/${file} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/ddnet/data/shader/vulkan COMPONENT client)