git: 75571883d775 - main - net-im/telegram-desktop: update to 4.5.2 release (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Tue, 03 Jan 2023 15:18:28 UTC
The branch main has been updated by fluffy:

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

commit 75571883d7754bf0c41ed1c509881f3a90c6bc90
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2023-01-03 15:15:04 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2023-01-03 15:15:04 +0000

    net-im/telegram-desktop: update to 4.5.2 release (+)
    
    Changelog:
    
    v 4.5.1
    * Fix crash in profile photo privacy edition.
    * Allow sending photos larger than 1280px (in Experimental Settings).
    
    v 4.5.2:
    * Fix unread reactions button in private chats.
    * Fix tile background saving after an app update.
    * Allow Ctrl+6,7,8 to activate extra pinned chats.
    
    Also add quick hack for upcoming CMake 3.25.x update
    which goes more strict with LINUX/BSD definitions
    
    Discussed with: osa
---
 net-im/telegram-desktop/Makefile | 5 ++++-
 net-im/telegram-desktop/distinfo | 6 +++---
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/net-im/telegram-desktop/Makefile b/net-im/telegram-desktop/Makefile
index 2bd256476561..2688ce85acba 100644
--- a/net-im/telegram-desktop/Makefile
+++ b/net-im/telegram-desktop/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	telegram-desktop
-DISTVERSION=	4.5.0
+DISTVERSION=	4.5.2
 CATEGORIES=	net-im
 MASTER_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/
 DISTNAME=	tdesktop-${DISTVERSION}-full
@@ -77,6 +77,9 @@ CMAKE_ON=	DESKTOP_APP_USE_PACKAGED DESKTOP_APP_DISABLE_CRASH_REPORTS \
 		DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION
 CMAKE_OFF=	DESKTOP_APP_USE_PACKAGED_FONTS
 
+# Since cmake 3.25.0, BSDs are no longer recognised as Linux (in this port).
+CMAKE_ARGS+=	-DLINUX=true
+
 # libdispatch components
 LDFLAGS+=	-lBlocksRuntime
 
diff --git a/net-im/telegram-desktop/distinfo b/net-im/telegram-desktop/distinfo
index 32c004940c6c..997a9b2fe301 100644
--- a/net-im/telegram-desktop/distinfo
+++ b/net-im/telegram-desktop/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1672431846
-SHA256 (tdesktop-4.5.0-full.tar.gz) = 9ba9eab6ae4b8be96056007e0fce36996b6bd2bbdec16bfb73a28b9208ceba93
-SIZE (tdesktop-4.5.0-full.tar.gz) = 63715621
+TIMESTAMP = 1672737775
+SHA256 (tdesktop-4.5.2-full.tar.gz) = b2c77dc4cd3589a60a7eb124233d339d68eb18ff9c1be52c64c048b42bf45bba
+SIZE (tdesktop-4.5.2-full.tar.gz) = 63717775