Lines 1-5
Link Here
|
1 |
PORTNAME= telegram-desktop |
1 |
PORTNAME= telegram-desktop |
2 |
DISTVERSION= 4.15.0 |
2 |
DISTVERSION= 4.15.0 |
|
|
3 |
PORTREVISION= 1 |
3 |
CATEGORIES= net-im |
4 |
CATEGORIES= net-im |
4 |
MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/ |
5 |
MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/ |
5 |
DISTNAME= tdesktop-${DISTVERSION}-full |
6 |
DISTNAME= tdesktop-${DISTVERSION}-full |
Lines 38-45
LIB_DEPENDS= libabsl_base.so:devel/abseil \
Link Here
|
38 |
libprotobuf.so:devel/protobuf \ |
39 |
libprotobuf.so:devel/protobuf \ |
39 |
libqrcodegencpp.so:graphics/qr-code-generator \ |
40 |
libqrcodegencpp.so:graphics/qr-code-generator \ |
40 |
librnnoise.so:audio/rnnoise \ |
41 |
librnnoise.so:audio/rnnoise \ |
41 |
libxcb-keysyms.so:x11/xcb-util-keysyms \ |
|
|
42 |
libxkbcommon.so:x11/libxkbcommon \ |
43 |
libxxhash.so:devel/xxhash \ |
42 |
libxxhash.so:devel/xxhash \ |
44 |
libvpx.so:multimedia/libvpx |
43 |
libvpx.so:multimedia/libvpx |
45 |
|
44 |
|
Lines 51-57
qt5_CONFLICTS_INSTALL= ${PORTNAME}-qt6
Link Here
|
51 |
qt6_CONFLICTS_INSTALL= ${PORTNAME} |
50 |
qt6_CONFLICTS_INSTALL= ${PORTNAME} |
52 |
|
51 |
|
53 |
USES= cmake compiler:c++20-lang desktop-file-utils gl gnome jpeg localbase \ |
52 |
USES= cmake compiler:c++20-lang desktop-file-utils gl gnome jpeg localbase \ |
54 |
minizip openal pkgconfig python:build ssl xorg |
53 |
minizip openal pkgconfig python:build ssl |
55 |
|
54 |
|
56 |
USE_GITHUB= nodefault |
55 |
USE_GITHUB= nodefault |
57 |
GH_ACCOUNT= telegramdesktop |
56 |
GH_ACCOUNT= telegramdesktop |
Lines 60-80
GH_PROJECT= tdesktop
Link Here
|
60 |
.if ${FLAVOR} == qt5 |
59 |
.if ${FLAVOR} == qt5 |
61 |
USES+= kde:5 qt:5 |
60 |
USES+= kde:5 qt:5 |
62 |
USE_QT= buildtools:build core dbus declarative gui imageformats network qmake:build \ |
61 |
USE_QT= buildtools:build core dbus declarative gui imageformats network qmake:build \ |
63 |
svg wayland widgets |
62 |
svg widgets |
64 |
USE_KDE= coreaddons kimageformats |
63 |
USE_KDE= coreaddons kimageformats |
65 |
.else |
64 |
.else |
66 |
USES+= qt:6 |
65 |
USES+= qt:6 |
67 |
USE_QT= 5compat base declarative imageformats lottie shadertools svg tools:build wayland |
66 |
USE_QT= 5compat base declarative imageformats lottie shadertools svg tools:build |
68 |
.endif |
67 |
.endif |
69 |
|
68 |
|
70 |
USE_GL= gl |
69 |
USE_GL= gl |
71 |
USE_GNOME= glib20 glibmm26 introspection |
70 |
USE_GNOME= glib20 glibmm26 introspection |
72 |
USE_XORG= x11 xcb xcomposite xdamage xext xfixes xrandr xrender xtst |
|
|
73 |
|
71 |
|
74 |
CMAKE_ARGS= -DTDESKTOP_API_ID=${TELEGRAM_API_ID} -DTDESKTOP_API_HASH=${TELEGRAM_API_HASH} |
72 |
CMAKE_ARGS= -DTDESKTOP_API_ID=${TELEGRAM_API_ID} -DTDESKTOP_API_HASH=${TELEGRAM_API_HASH} |
75 |
CMAKE_ON= DESKTOP_APP_USE_PACKAGED DESKTOP_APP_DISABLE_CRASH_REPORTS \ |
73 |
CMAKE_ON= DESKTOP_APP_USE_PACKAGED DESKTOP_APP_DISABLE_CRASH_REPORTS \ |
76 |
DESKTOP_APP_DISABLE_SCUDO \ |
74 |
DESKTOP_APP_DISABLE_SCUDO |
77 |
DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION |
|
|
78 |
|
75 |
|
79 |
# Since cmake 3.25.0, BSDs are no longer recognised as Linux (in this port). |
76 |
# Since cmake 3.25.0, BSDs are no longer recognised as Linux (in this port). |
80 |
CMAKE_ARGS+= -DLINUX=true |
77 |
CMAKE_ARGS+= -DLINUX=true |
Lines 86-96
LDFLAGS+= -lBlocksRuntime
Link Here
|
86 |
# It dynamically loads PulseAudio, and if this fails, it loads ALSA. |
83 |
# It dynamically loads PulseAudio, and if this fails, it loads ALSA. |
87 |
# If both of them are not installed, then voice calls do not work, but other functionalities still work. |
84 |
# If both of them are not installed, then voice calls do not work, but other functionalities still work. |
88 |
OPTIONS_DEFINE= SYSTEM_FONTS |
85 |
OPTIONS_DEFINE= SYSTEM_FONTS |
89 |
OPTIONS_DEFAULT= ALSA |
86 |
OPTIONS_DEFAULT= ALSA X11 |
90 |
OPTIONS_GROUP= AUDIO |
87 |
OPTIONS_GROUP= AUDIO |
91 |
OPTIONS_GROUP_AUDIO= ALSA PULSEAUDIO |
88 |
OPTIONS_GROUP_AUDIO= ALSA PULSEAUDIO |
|
|
89 |
OPTIONS_SINGLE= DESKTOP |
90 |
OPTIONS_SINGLE_DESKTOP= X11 WAYLAND |
92 |
|
91 |
|
93 |
AUDIO_DESC= Audio backend for voice calls |
92 |
AUDIO_DESC= Audio backend for voice calls |
|
|
93 |
DESKTOP_DESC= Desktop integration |
94 |
SYSTEM_FONTS_DESC= Use system fonts instead of bundled patched ones |
94 |
SYSTEM_FONTS_DESC= Use system fonts instead of bundled patched ones |
95 |
|
95 |
|
96 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
96 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
Lines 98-103
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
Link Here
|
98 |
ALSA_CMAKE_BOOL_OFF= LIBTGVOIP_DISABLE_ALSA |
98 |
ALSA_CMAKE_BOOL_OFF= LIBTGVOIP_DISABLE_ALSA |
99 |
PULSEAUDIO_CMAKE_BOOL_OFF= LIBTGVOIP_DISABLE_PULSEAUDIO |
99 |
PULSEAUDIO_CMAKE_BOOL_OFF= LIBTGVOIP_DISABLE_PULSEAUDIO |
100 |
SYSTEM_FONTS_CMAKE_BOOL_OFF= DESKTOP_APP_USE_PACKAGED_FONTS |
100 |
SYSTEM_FONTS_CMAKE_BOOL_OFF= DESKTOP_APP_USE_PACKAGED_FONTS |
|
|
101 |
WAYLAND_CMAKE_BOOL_OFF= DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION |
102 |
WAYLAND_USE= qt=wayland |
103 |
X11_CMAKE_BOOL_OFF= DESKTOP_APP_DISABLE_X11_INTEGRATION |
104 |
X11_USES= xorg |
105 |
X11_USE= xorg=x11,xcb,xcomposite,xdamage,xext,xfixes,xrandr,xrender,xtst |
106 |
X11_LIB_DEPENDS= libxcb-keysyms.so:x11/xcb-util-keysyms \ |
101 |
|
107 |
|
102 |
# Telegram asks each custom build to have its own API ID and hash. |
108 |
# Telegram asks each custom build to have its own API ID and hash. |
103 |
TELEGRAM_API_HASH= 20a3432aab43f24bb4460fceac5ba38d |
109 |
TELEGRAM_API_HASH= 20a3432aab43f24bb4460fceac5ba38d |
Lines 132-141
post-extract:
Link Here
|
132 |
${WRKSRC}/Telegram/ThirdParty/lz4 \ |
138 |
${WRKSRC}/Telegram/ThirdParty/lz4 \ |
133 |
${WRKSRC}/Telegram/ThirdParty/minizip \ |
139 |
${WRKSRC}/Telegram/ThirdParty/minizip \ |
134 |
${WRKSRC}/Telegram/ThirdParty/jimf \ |
140 |
${WRKSRC}/Telegram/ThirdParty/jimf \ |
135 |
${WRKSRC}/Telegram/ThirdParty/plasma-wayland-protocols \ |
|
|
136 |
${WRKSRC}/Telegram/ThirdParty/range-v3 \ |
141 |
${WRKSRC}/Telegram/ThirdParty/range-v3 \ |
137 |
${WRKSRC}/Telegram/ThirdParty/wayland \ |
|
|
138 |
${WRKSRC}/Telegram/ThirdParty/wayland-protocols \ |
139 |
${WRKSRC}/Telegram/ThirdParty/xxHash |
142 |
${WRKSRC}/Telegram/ThirdParty/xxHash |
140 |
|
143 |
|
141 |
.if ${FLAVOR} == qt5 |
144 |
.if ${FLAVOR} == qt5 |