Lines 1-7
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= telegram-desktop |
3 |
PORTNAME= telegram-desktop |
4 |
DISTVERSION= 2.5.8 |
4 |
DISTVERSION= 2.6.1 |
5 |
CATEGORIES= net-im |
5 |
CATEGORIES= net-im |
6 |
MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/ |
6 |
MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/ |
7 |
DISTNAME= tdesktop-${DISTVERSION}-full |
7 |
DISTNAME= tdesktop-${DISTVERSION}-full |
Lines 13-21
Link Here
|
13 |
LICENSE= GPLv3 |
13 |
LICENSE= GPLv3 |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
15 |
|
15 |
|
|
|
16 |
BROKEN_i386= Does not build, webrtc related. |
16 |
NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe |
17 |
NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe |
17 |
NOT_FOR_ARCHS_REASON= Only little endian is supported |
18 |
NOT_FOR_ARCHS_REASON= Only little endian is supported |
18 |
BROKEN_i386= Does not build, webrtc related. |
|
|
19 |
|
19 |
|
20 |
BUILD_DEPENDS= alsa-lib>0:audio/alsa-lib \ |
20 |
BUILD_DEPENDS= alsa-lib>0:audio/alsa-lib \ |
21 |
dee>0:devel/dee \ |
21 |
dee>0:devel/dee \ |
Lines 44-61
Link Here
|
44 |
USES= cmake compiler:c++17-lang desktop-file-utils gl \ |
44 |
USES= cmake compiler:c++17-lang desktop-file-utils gl \ |
45 |
gnome pkgconfig python:3.7,build qt:5 ssl xorg |
45 |
gnome pkgconfig python:3.7,build qt:5 ssl xorg |
46 |
|
46 |
|
47 |
# see Bugzilla #245452 for details |
|
|
48 |
NO_CCACHE= yes |
49 |
|
50 |
USE_GITHUB= nodefault |
47 |
USE_GITHUB= nodefault |
51 |
GH_ACCOUNT= telegramdesktop |
48 |
GH_ACCOUNT= telegramdesktop |
52 |
GH_PROJECT= tdesktop |
49 |
GH_PROJECT= tdesktop |
|
|
50 |
USE_GL= gl |
53 |
USE_GNOME= glib20 |
51 |
USE_GNOME= glib20 |
|
|
52 |
INSTALLS_ICONS= yes |
54 |
USE_QT= core dbus gui imageformats network widgets buildtools_build \ |
53 |
USE_QT= core dbus gui imageformats network widgets buildtools_build \ |
55 |
qmake_build wayland |
54 |
qmake_build wayland |
56 |
USE_XORG= x11 xcb |
55 |
USE_XORG= x11 xcb |
57 |
USE_GL= gl |
|
|
58 |
|
56 |
|
|
|
57 |
CMAKE_ARGS= -DDESKTOP_APP_SPECIAL_TARGET="" -DTDESKTOP_LAUNCHER_BASENAME="telegramdesktop" \ |
58 |
-DTDESKTOP_API_ID=${TELEGRAM_API_ID} -DTDESKTOP_API_HASH=${TELEGRAM_API_HASH} \ |
59 |
-Ddisable_autoupdate=1 |
59 |
CMAKE_ON= DESKTOP_APP_USE_PACKAGED DESKTOP_APP_DISABLE_CRASH_REPORTS \ |
60 |
CMAKE_ON= DESKTOP_APP_USE_PACKAGED DESKTOP_APP_DISABLE_CRASH_REPORTS \ |
60 |
TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION \ |
61 |
TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION \ |
61 |
DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION |
62 |
DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION |
Lines 62-96
Link Here
|
62 |
CMAKE_OFF= DESKTOP_APP_USE_PACKAGED_RLOTTIE DESKTOP_APP_USE_PACKAGED_VARIANT \ |
63 |
CMAKE_OFF= DESKTOP_APP_USE_PACKAGED_RLOTTIE DESKTOP_APP_USE_PACKAGED_VARIANT \ |
63 |
DESKTOP_APP_USE_GLIBC_WRAPS TDESKTOP_USE_PACKAGED_TGVOIP \ |
64 |
DESKTOP_APP_USE_GLIBC_WRAPS TDESKTOP_USE_PACKAGED_TGVOIP \ |
64 |
DESKTOP_APP_USE_PACKAGED_FONTS |
65 |
DESKTOP_APP_USE_PACKAGED_FONTS |
65 |
CMAKE_ARGS= -DDESKTOP_APP_SPECIAL_TARGET="" -DTDESKTOP_LAUNCHER_BASENAME="telegramdesktop" \ |
|
|
66 |
-DTDESKTOP_API_ID=${TELEGRAM_API_ID} -DTDESKTOP_API_HASH=${TELEGRAM_API_HASH} \ |
67 |
-Ddisable_autoupdate=1 |
68 |
|
66 |
|
69 |
# Disable DCHECKs, otherwise video calls will crash. |
67 |
# Disable DCHECKs, otherwise video calls will crash. |
70 |
CXXFLAGS+= -DNDEBUG |
68 |
CXXFLAGS+= -DNDEBUG |
71 |
|
69 |
|
72 |
# Telegram asks each custom build to have its own API ID and hash. |
70 |
# see Bugzilla #245452 for details |
73 |
TELEGRAM_API_ID= 601761 |
71 |
NO_CCACHE= yes |
74 |
TELEGRAM_API_HASH= 20a3432aab43f24bb4460fceac5ba38d |
|
|
75 |
|
72 |
|
76 |
# Telegram uses OpenAL for its audio, but libtgvoip (for voice calls) can use PulseAudio or ALSA. |
73 |
# Telegram uses OpenAL for its audio, but libtgvoip (for voice calls) can use PulseAudio or ALSA. |
77 |
# It dynamically loads PulseAudio, and if this fails, it loads ALSA. |
74 |
# It dynamically loads PulseAudio, and if this fails, it loads ALSA. |
78 |
# If both of them are not installed, then voice calls do not work, but other functionalities still work. |
75 |
# If both of them are not installed, then voice calls do not work, but other functionalities still work. |
|
|
76 |
OPTIONS_DEFINE= GTK |
77 |
OPTIONS_DEFAULT= ALSA |
79 |
OPTIONS_MULTI= AUDIO |
78 |
OPTIONS_MULTI= AUDIO |
80 |
OPTIONS_MULTI_AUDIO= ALSA PULSEAUDIO |
79 |
OPTIONS_MULTI_AUDIO= ALSA PULSEAUDIO |
81 |
OPTIONS_DEFINE= GTK |
|
|
82 |
OPTIONS_DEFAULT= ALSA |
83 |
|
80 |
|
84 |
AUDIO_DESC= Audio backend for voice calls |
81 |
AUDIO_DESC= Audio backend for voice calls |
85 |
GTK_DESC= Gtk integration (Use Gtk dialogs, etc.) |
82 |
GTK_DESC= Gtk integration (Use Gtk dialogs, etc.) |
86 |
|
83 |
|
87 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
84 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
|
|
85 |
GTK_CMAKE_BOOL_OFF= DESKTOP_APP_DISABLE_GTK_INTEGRATION |
88 |
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio |
86 |
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio |
89 |
|
87 |
|
90 |
GTK_CMAKE_BOOL_OFF= TDESKTOP_DISABLE_GTK_INTEGRATION |
88 |
# Telegram asks each custom build to have its own API ID and hash. |
|
|
89 |
TELEGRAM_API_HASH= 20a3432aab43f24bb4460fceac5ba38d |
90 |
TELEGRAM_API_ID= 601761 |
91 |
|
91 |
|
92 |
INSTALLS_ICONS= yes |
|
|
93 |
|
94 |
.include <bsd.port.options.mk> |
92 |
.include <bsd.port.options.mk> |
95 |
|
93 |
|
96 |
.if ${PORT_OPTIONS:MGTK} |
94 |
.if ${PORT_OPTIONS:MGTK} |