summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorJason E. Hale <jhale@FreeBSD.org>2024-05-30 10:04:28 -0400
committerJason E. Hale <jhale@FreeBSD.org>2024-05-30 10:21:03 -0400
commitca2108f09031662cc3f0a556a0197291f4ad47ad (patch)
tree7282a4b505f9ed67236559acf30cc450f7495ccb /net-im
parentQt5: Update to 5.15.14 (diff)
net-im/telegram-desktop: Chase Qt5 update
This unfortunately makes use of the Qt private API, so it has to be rebuilt with each Qt update. Fix the qt5 flavor when building on a live system that also has Qt6 installed. If both Qt5 and Qt6 were installed, it would default to using Qt6.
Diffstat (limited to 'net-im')
-rw-r--r--net-im/telegram-desktop/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/net-im/telegram-desktop/Makefile b/net-im/telegram-desktop/Makefile
index dd1fb9ecd9ad..e7e824e8611c 100644
--- a/net-im/telegram-desktop/Makefile
+++ b/net-im/telegram-desktop/Makefile
@@ -1,5 +1,6 @@
PORTNAME= telegram-desktop
DISTVERSION= 5.0.4
+PORTREVISION= 1
CATEGORIES= net-im
MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/
DISTNAME= tdesktop-${DISTVERSION}-full
@@ -71,7 +72,8 @@ USE_GL= gl
USE_GNOME= glib20 glibmm26 introspection
USE_XORG= x11 xcb xcomposite xdamage xext xfixes xrandr xrender xtst
-CMAKE_ARGS= -DTDESKTOP_API_ID=${TELEGRAM_API_ID} -DTDESKTOP_API_HASH=${TELEGRAM_API_HASH}
+CMAKE_ARGS= -DTDESKTOP_API_ID=${TELEGRAM_API_ID} -DTDESKTOP_API_HASH=${TELEGRAM_API_HASH} \
+ -DQT_VERSION_MAJOR=${FLAVOR:S/qt//}
CMAKE_ON= DESKTOP_APP_USE_PACKAGED DESKTOP_APP_DISABLE_CRASH_REPORTS \
DESKTOP_APP_DISABLE_SCUDO \
DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION