|
|
@ -1,5 +1,5 @@ |
|
|
|
PORTNAME= telegram-desktop |
|
|
|
DISTVERSION= 5.6.3 |
|
|
|
DISTVERSION= 5.7.2 |
|
|
|
CATEGORIES= net-im |
|
|
|
MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/ |
|
|
|
DISTNAME= tdesktop-${DISTVERSION}-full |
|
|
@ -63,8 +63,8 @@ USE_QT= buildtools:build core dbus declarative gui imageformats network qmake:b |
|
|
|
svg widgets |
|
|
|
USE_KDE= coreaddons kimageformats |
|
|
|
.else |
|
|
|
USE_QT= 5compat base declarative imageformats lottie shadertools svg tools:build |
|
|
|
USES+= kde:6 qt:6 |
|
|
|
USE_QT= 5compat base declarative imageformats lottie shadertools svg tools:build |
|
|
|
USE_KDE= coreaddons kimageformats |
|
|
|
.endif |
|
|
|
|
|
|
@ -75,7 +75,7 @@ CMAKE_ARGS= -DTDESKTOP_API_ID=${TELEGRAM_API_ID} -DTDESKTOP_API_HASH=${TELEGRAM_ |
|
|
|
-DQT_VERSION_MAJOR=${FLAVOR:S/qt//} |
|
|
|
CMAKE_ON= DESKTOP_APP_USE_PACKAGED DESKTOP_APP_DISABLE_CRASH_REPORTS \
|
|
|
|
DESKTOP_APP_DISABLE_JEMALLOC \
|
|
|
|
DESKTOP_APP_DISABLE_SCUDO \
|
|
|
|
DESKTOP_APP_DISABLE_SCUDO |
|
|
|
|
|
|
|
# Since cmake 3.25.0, BSDs are no longer recognised as Linux (in this port).
|
|
|
|
CMAKE_ARGS+= -DLINUX=true |
|
|
@ -87,14 +87,14 @@ LDFLAGS+= -lBlocksRuntime |
|
|
|
# It dynamically loads PulseAudio, and if this fails, it loads ALSA.
|
|
|
|
# If both of them are not installed, then voice calls do not work, but other functionalities still work.
|
|
|
|
OPTIONS_DEFINE= SYSTEM_FONTS |
|
|
|
OPTIONS_DEFAULT= ALSA WAYLAND X11 |
|
|
|
OPTIONS_DEFAULT= ALSA X11 WAYLAND |
|
|
|
OPTIONS_GROUP= AUDIO |
|
|
|
OPTIONS_MULTI= DESKTOP |
|
|
|
OPTIONS_GROUP_AUDIO= ALSA PULSEAUDIO |
|
|
|
OPTIONS_MULTI_DESKTOP= WAYLAND X11 |
|
|
|
OPTIONS_MULTI_DESKTOP= X11 WAYLAND |
|
|
|
|
|
|
|
AUDIO_DESC= Audio backend for voice calls |
|
|
|
DESKTOP_DESC= Desktop integration |
|
|
|
DESKTOP_DESC= Desktop integration |
|
|
|
SYSTEM_FONTS_DESC= Use system fonts instead of bundled patched ones |
|
|
|
|
|
|
|
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
|
|
@ -103,11 +103,12 @@ ALSA_CMAKE_BOOL_OFF= LIBTGVOIP_DISABLE_ALSA |
|
|
|
PULSEAUDIO_CMAKE_BOOL_OFF= LIBTGVOIP_DISABLE_PULSEAUDIO |
|
|
|
SYSTEM_FONTS_CMAKE_BOOL_OFF= DESKTOP_APP_USE_PACKAGED_FONTS |
|
|
|
WAYLAND_CMAKE_BOOL_OFF= DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION |
|
|
|
WAYLAND_USE= qt=wayland |
|
|
|
X11_CMAKE_BOOL_OFF= DESKTOP_APP_DISABLE_X11_INTEGRATION |
|
|
|
X11_USES= xorg |
|
|
|
X11_USE= xorg=x11,xcb,xcomposite,xdamage,xext,xfixes,xrandr,xrender,xtst |
|
|
|
WAYLAND_USE= qt=wayland |
|
|
|
X11_CMAKE_BOOL_OFF= DESKTOP_APP_DISABLE_X11_INTEGRATION |
|
|
|
X11_USES= xorg |
|
|
|
X11_USE= xorg=x11,xcb,xcomposite,xdamage,xext,xfixes,xrandr,xrender,xtst |
|
|
|
X11_LIB_DEPENDS= libxcb-keysyms.so:x11/xcb-util-keysyms \
|
|
|
|
libxkbcommon.so:x11/libxkbcommon |
|
|
|
|
|
|
|
# Telegram asks each custom build to have its own API ID and hash.
|
|
|
|
TELEGRAM_API_HASH= 20a3432aab43f24bb4460fceac5ba38d |
|
|
|