Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Feb 2023 02:14:03 GMT
From:      "Sergey A. Osokin" <osa@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 70d1f3fc4b3d - main - net-im/telegram-desktop: update 4.5.3 -> 4.6.0
Message-ID:  <202302040214.3142E3r5010339@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by osa:

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

commit 70d1f3fc4b3df639b8f7520636b836222d242399
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2023-02-04 02:11:05 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2023-02-04 02:13:57 +0000

    net-im/telegram-desktop: update 4.5.3 -> 4.6.0
    
    These changes based on fluffy's patch
    https://people.freebsd.org/~fluffy/-patches/net-im_telegram-desktop458.diff
    
    Discussed by:   fluffy
---
 net-im/telegram-desktop/Makefile | 34 +++++++++++++++++++++-------------
 net-im/telegram-desktop/distinfo |  6 +++---
 2 files changed, 24 insertions(+), 16 deletions(-)

diff --git a/net-im/telegram-desktop/Makefile b/net-im/telegram-desktop/Makefile
index a320a0714af7..fa542fb0ef43 100644
--- a/net-im/telegram-desktop/Makefile
+++ b/net-im/telegram-desktop/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	telegram-desktop
-DISTVERSION=	4.5.3
+DISTVERSION=	4.6.0
 CATEGORIES=	net-im
 MASTER_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/
 DISTNAME=	tdesktop-${DISTVERSION}-full
@@ -29,10 +29,7 @@ LIB_DEPENDS=	libabsl_base.so:devel/abseil \
 		libdbus-1.so:devel/dbus \
 		libdispatch.so:devel/libdispatch \
 		libhunspell-1.7.so:textproc/hunspell \
-		libjpeg.so:graphics/jpeg-turbo \
 		liblz4.so:archivers/liblz4 \
-		libminizip.so:archivers/minizip \
-		libopenal.so:audio/openal-soft \
 		libopenh264.so:multimedia/openh264 \
 		libopus.so:audio/opus \
 		libpipewire-0.3.so:multimedia/pipewire \
@@ -51,9 +48,10 @@ qt6_PKGNAMESUFFIX=	-qt6
 qt5_CONFLICTS_INSTALL=	${PORTNAME}-qt6
 qt6_CONFLICTS_INSTALL=	${PORTNAME}
 
-USES=		cmake compiler:c++17-lang desktop-file-utils gl \
-		gnome localbase pkgconfig python:3.7+,build ssl xorg
+USES=		cmake desktop-file-utils gl gnome jpeg localbase \
+		minizip openal pkgconfig python:3.7+,build ssl xorg
 
+USE_CXXSTD=	c++17
 USE_GITHUB=	nodefault
 GH_ACCOUNT=	telegramdesktop
 GH_PROJECT=	tdesktop
@@ -99,13 +97,23 @@ PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
 TELEGRAM_API_HASH=	20a3432aab43f24bb4460fceac5ba38d
 TELEGRAM_API_ID=	601761
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if ${COMPILER_VERSION} < 130
-LLVM_VER=	13
-BUILD_DEPENDS+=	clang${LLVM_VER}:devel/llvm${LLVM_VER}
-CC=		${LOCALBASE}/bin/clang${LLVM_VER}
-CXX=		${LOCALBASE}/bin/clang++${LLVM_VER}
+.if ${OSVERSION} > 1400000
+USES+=	llvm:build
+CC=	${_LLVM_MK_PREFIX}/bin/clang
+CPP=	${_LLVM_MK_PREFIX}/bin/clang-cpp
+CXX=	${_LLVM_MK_PREFIX}/bin/clang++
+#LD?=	${_LLVM_MK_PREFIX}/bin/ld
+.else
+USES+=	compiler:c++17-lang
 .endif
 
-.include <bsd.port.post.mk>
+post-patch:
+	# XXX fix the following on every source file
+	# warning: unknown warning option '-Wno-maybe-uninitialized'
+	# warning: argument unused during compilation: '-fstack-clash-protection'
+	${REINPLACE_CMD} -e /-Wno-maybe-uninitialized/d -e /-fstack-clash-protection/d \
+	    ${WRKSRC}/cmake/options_linux.cmake
+
+.include <bsd.port.mk>
diff --git a/net-im/telegram-desktop/distinfo b/net-im/telegram-desktop/distinfo
index f9bd08b6cfa7..54e2a8d7dd6f 100644
--- a/net-im/telegram-desktop/distinfo
+++ b/net-im/telegram-desktop/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1673200650
-SHA256 (tdesktop-4.5.3-full.tar.gz) = 3e338607708751813df36b677904e2e652f8adfac669da418c8dab4588a4f70f
-SIZE (tdesktop-4.5.3-full.tar.gz) = 63718129
+TIMESTAMP = 1675460117
+SHA256 (tdesktop-4.6.0-full.tar.gz) = 7a3f9697dad1d8f857eac4e44641bdd0aac152ac599d87cc49f7cd8a7a8a9c47
+SIZE (tdesktop-4.6.0-full.tar.gz) = 63798012



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302040214.3142E3r5010339>