git: a787549437b4 - main - net-im/telegram-desktop: update to 5.15.3 release (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Mon, 09 Jun 2025 19:20:46 UTC
The branch main has been updated by fluffy:

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

commit a787549437b43a1e5e42d8c78e4a0586e56d5243
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2025-06-09 19:17:12 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2025-06-09 19:20:11 +0000

    net-im/telegram-desktop: update to 5.15.3 release (+)
    
    Upstream renamed the binary from telegram-desktop to Telegram.
    
    Changelog:      https://github.com/telegramdesktop/tdesktop/releases/tag/v5.15.0 \
                    https://github.com/telegramdesktop/tdesktop/releases/tag/v5.15.1 \
                    https://github.com/telegramdesktop/tdesktop/releases/tag/v5.15.2 \
                    https://github.com/telegramdesktop/tdesktop/releases/tag/v5.15.3
---
 net-im/telegram-desktop/Makefile                   |  9 +++--
 net-im/telegram-desktop/distinfo                   |  8 ++--
 .../files/patch-cmake_external_qt_CMakeLists.txt   | 44 ----------------------
 .../files/patch-cmake_external_qt_package.cmake    | 11 ------
 net-im/telegram-desktop/pkg-plist                  |  2 +-
 5 files changed, 10 insertions(+), 64 deletions(-)

diff --git a/net-im/telegram-desktop/Makefile b/net-im/telegram-desktop/Makefile
index a7f2347be98d..181ef126ac4b 100644
--- a/net-im/telegram-desktop/Makefile
+++ b/net-im/telegram-desktop/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	telegram-desktop
-DISTVERSION=	5.14.3
-PORTREVISION=	1
+DISTVERSION=	5.15.3
 CATEGORIES=	net-im
 MASTER_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/
 DISTNAME=	tdesktop-${DISTVERSION}-full
@@ -36,7 +35,9 @@ LIB_DEPENDS=	libabsl_base.so:devel/abseil \
 		libfmt.so:devel/libfmt \
 		libgeoclue-2.so:net/geoclue \
 		libgeocode-glib-2.so:net/geocode-glib2 \
+		libheif.so:graphics/libheif \
 		libhunspell-1.7.so:textproc/hunspell \
+		libjxl.so:graphics/libjxl \
 		liblz4.so:archivers/liblz4 \
 		libopenh264.so:multimedia/openh264 \
 		libopus.so:audio/opus \
@@ -63,7 +64,9 @@ USE_GNOME=	glib20 glibmm26 introspection
 
 CMAKE_ARGS=	-DTDESKTOP_API_ID=${TELEGRAM_API_ID} -DTDESKTOP_API_HASH=${TELEGRAM_API_HASH} \
 		-DQT_VERSION_MAJOR=6
-CMAKE_ON=	DESKTOP_APP_USE_PACKAGED DESKTOP_APP_DISABLE_CRASH_REPORTS \
+CMAKE_ON=	DESKTOP_APP_USE_PACKAGED \
+		DESKTOP_APP_DISABLE_QT_PLUGINS \
+		DESKTOP_APP_DISABLE_CRASH_REPORTS \
 		DESKTOP_APP_DISABLE_JEMALLOC \
 		DESKTOP_APP_DISABLE_SCUDO
 
diff --git a/net-im/telegram-desktop/distinfo b/net-im/telegram-desktop/distinfo
index 85a59e1e21c4..ee585cdd5802 100644
--- a/net-im/telegram-desktop/distinfo
+++ b/net-im/telegram-desktop/distinfo
@@ -1,5 +1,3 @@
-TIMESTAMP = 1748017733
-SHA256 (tdesktop-5.14.3-full.tar.gz) = af15716f053403dc42233775e931a711759c8f0468a0aff5f3dfabdf98bf6861
-SIZE (tdesktop-5.14.3-full.tar.gz) = 72816906
-SHA256 (f676d32f96e70874d9d8e78788c37b82b1e3324a.patch) = a3b6ad6badcbfeb9af01a3d7591c433779c2fea99d57c735ed8a6beed549e5ce
-SIZE (f676d32f96e70874d9d8e78788c37b82b1e3324a.patch) = 862
+TIMESTAMP = 1749490185
+SHA256 (tdesktop-5.15.3-full.tar.gz) = d0385d35c5abe4ee15927f4374650cdd97a1cd2bf531b4389e320ac148a9f325
+SIZE (tdesktop-5.15.3-full.tar.gz) = 76874536
diff --git a/net-im/telegram-desktop/files/patch-cmake_external_qt_CMakeLists.txt b/net-im/telegram-desktop/files/patch-cmake_external_qt_CMakeLists.txt
deleted file mode 100644
index 89ab8b613ef6..000000000000
--- a/net-im/telegram-desktop/files/patch-cmake_external_qt_CMakeLists.txt
+++ /dev/null
@@ -1,44 +0,0 @@
---- cmake/external/qt/CMakeLists.txt.orig	2024-10-11 07:45:28 UTC
-+++ cmake/external/qt/CMakeLists.txt
-@@ -16,6 +16,8 @@ if (DESKTOP_APP_USE_PACKAGED)
-         Qt::CorePrivate
-         Qt::Gui
-         Qt::GuiPrivate
-+        $<TARGET_NAME_IF_EXISTS:Qt::ServiceSupport>
-+        $<TARGET_NAME_IF_EXISTS:Qt::ServiceSupportPrivate>
-         $<TARGET_NAME_IF_EXISTS:Qt::OpenGL>
-         Qt::Widgets
-         Qt::WidgetsPrivate
-@@ -36,6 +38,7 @@ INTERFACE
-     ${qt_loc}/include
-     ${qt_loc}/include/QtCore
-     ${qt_loc}/include/QtGui
-+    $<$<TARGET_EXISTS:Qt::ServiceSupport>:${qt_loc}/include/QtServiceSupport>
-     $<$<TARGET_EXISTS:Qt::OpenGL>:${qt_loc}/include/QtOpenGL>
-     ${qt_loc}/include/QtWidgets
-     $<$<TARGET_EXISTS:Qt::OpenGLWidgets>:${qt_loc}/include/QtOpenGLWidgets>
-@@ -46,9 +49,11 @@ INTERFACE
-     $<$<TARGET_EXISTS:Qt::WaylandCompositor>:${qt_loc}/include/QtWaylandCompositor>
-     ${qt_loc}/include/QtCore/${QT_VERSION}
-     ${qt_loc}/include/QtGui/${QT_VERSION}
-+    ${qt_loc}/include/QtServiceSupport/${qt_version}
-     ${qt_loc}/include/QtWidgets/${QT_VERSION}
-     ${qt_loc}/include/QtCore/${QT_VERSION}/QtCore
-     ${qt_loc}/include/QtGui/${QT_VERSION}/QtGui
-+    ${qt_loc}/include/QtServiceSupport/${qt_version}/QtServiceSupport
-     ${qt_loc}/include/QtWidgets/${QT_VERSION}/QtWidgets
- )
- 
-@@ -97,6 +102,12 @@ set(common_qt_libs
-     lib/${qt_lib_prefix}Qt${QT_VERSION_MAJOR}Gui
-     lib/${qt_lib_prefix}Qt${QT_VERSION_MAJOR}Core
- )
-+
-+if (TARGET Qt::ServiceSupport)
-+    list(PREPEND common_qt_libs
-+        lib/${qt_lib_prefix}Qt${QT_VERSION_MAJOR}ServiceSupport
-+    )
-+endif()
- 
- if (TARGET Qt::OpenGL)
-     list(PREPEND common_qt_libs
diff --git a/net-im/telegram-desktop/files/patch-cmake_external_qt_package.cmake b/net-im/telegram-desktop/files/patch-cmake_external_qt_package.cmake
deleted file mode 100644
index 06e5d4af10e9..000000000000
--- a/net-im/telegram-desktop/files/patch-cmake_external_qt_package.cmake
+++ /dev/null
@@ -1,11 +0,0 @@
---- cmake/external/qt/package.cmake.orig	2025-05-01 07:59:09 UTC
-+++ cmake/external/qt/package.cmake
-@@ -69,6 +69,8 @@ if (QT_VERSION_MAJOR GREATER_EQUAL 6)
- 
- if (QT_VERSION_MAJOR GREATER_EQUAL 6)
-     find_package(Qt${QT_VERSION_MAJOR} COMPONENTS OpenGL OpenGLWidgets REQUIRED)
-+else()
-+    find_package(Qt${QT_VERSION_MAJOR} COMPONENTS ServiceSupport REQUIRED)
- endif()
- 
- if (LINUX)
diff --git a/net-im/telegram-desktop/pkg-plist b/net-im/telegram-desktop/pkg-plist
index eb0a5baffd4d..6b7179b9038e 100644
--- a/net-im/telegram-desktop/pkg-plist
+++ b/net-im/telegram-desktop/pkg-plist
@@ -1,4 +1,4 @@
-bin/telegram-desktop
+bin/Telegram
 share/applications/org.telegram.desktop.desktop
 share/dbus-1/services/org.telegram.desktop.service
 share/icons/hicolor/128x128/apps/org.telegram.desktop.png