|
@ -1,5 +1,6 @@ |
|
|
PORTNAME= telegram-desktop |
|
|
PORTNAME= telegram-desktop |
|
|
DISTVERSION= 4.14.4 |
|
|
DISTVERSION= 5.1.7 |
|
|
|
|
|
PORTREVISION= 1 |
|
|
CATEGORIES= net-im |
|
|
CATEGORIES= net-im |
|
|
MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/ |
|
|
MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/ |
|
|
DISTNAME= tdesktop-${DISTVERSION}-full |
|
|
DISTNAME= tdesktop-${DISTVERSION}-full |
|
@ -13,13 +14,12 @@ LICENSE= GPLv3 |
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE |
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE |
|
|
|
|
|
|
|
|
BROKEN_i386= does not build, webrtc related |
|
|
BROKEN_i386= does not build, webrtc related |
|
|
BROKEN_SSL= openssl openssl31 |
|
|
#BROKEN_SSL= openssl openssl31
|
|
|
BROKEN_SSL_REASON= undefined symbol: ERR_load_BIO_strings |
|
|
#BROKEN_SSL_REASON= undefined symbol: ERR_load_BIO_strings
|
|
|
NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe |
|
|
NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe |
|
|
NOT_FOR_ARCHS_REASON= Only little endian is supported |
|
|
NOT_FOR_ARCHS_REASON= Only little endian is supported |
|
|
|
|
|
|
|
|
BUILD_DEPENDS= boost-libs>0:devel/boost-libs \
|
|
|
BUILD_DEPENDS= boost-libs>0:devel/boost-libs \
|
|
|
microsoft-gsl>0:devel/microsoft-gsl \
|
|
|
|
|
|
range-v3>0:devel/range-v3 \
|
|
|
range-v3>0:devel/range-v3 \
|
|
|
tl-expected>0:devel/tl-expected \
|
|
|
tl-expected>0:devel/tl-expected \
|
|
|
v4l_compat>0:multimedia/v4l_compat \
|
|
|
v4l_compat>0:multimedia/v4l_compat \
|
|
@ -27,6 +27,7 @@ BUILD_DEPENDS= boost-libs>0:devel/boost-libs \ |
|
|
${LOCALBASE}/lib/libtg_owt.a:net-im/tg_owt |
|
|
${LOCALBASE}/lib/libtg_owt.a:net-im/tg_owt |
|
|
LIB_DEPENDS= libabsl_base.so:devel/abseil \
|
|
|
LIB_DEPENDS= libabsl_base.so:devel/abseil \
|
|
|
libavformat.so:multimedia/ffmpeg \
|
|
|
libavformat.so:multimedia/ffmpeg \
|
|
|
|
|
|
libcrc32c.so:devel/crc32c \
|
|
|
libdbus-1.so:devel/dbus \
|
|
|
libdbus-1.so:devel/dbus \
|
|
|
libdispatch.so:devel/libdispatch \
|
|
|
libdispatch.so:devel/libdispatch \
|
|
|
libfmt.so:devel/libfmt \
|
|
|
libfmt.so:devel/libfmt \
|
|
@ -38,7 +39,7 @@ LIB_DEPENDS= libabsl_base.so:devel/abseil \ |
|
|
libprotobuf.so:devel/protobuf \
|
|
|
libprotobuf.so:devel/protobuf \
|
|
|
libqrcodegencpp.so:graphics/qr-code-generator \
|
|
|
libqrcodegencpp.so:graphics/qr-code-generator \
|
|
|
librnnoise.so:audio/rnnoise \
|
|
|
librnnoise.so:audio/rnnoise \
|
|
|
libxkbcommon.so:x11/libxkbcommon \
|
|
|
libsrtp2.so:net/libsrtp2 \
|
|
|
libxxhash.so:devel/xxhash \
|
|
|
libxxhash.so:devel/xxhash \
|
|
|
libvpx.so:multimedia/libvpx |
|
|
libvpx.so:multimedia/libvpx |
|
|
|
|
|
|
|
@ -49,7 +50,7 @@ qt6_PKGNAMESUFFIX= -qt6 |
|
|
qt5_CONFLICTS_INSTALL= ${PORTNAME}-qt6 |
|
|
qt5_CONFLICTS_INSTALL= ${PORTNAME}-qt6 |
|
|
qt6_CONFLICTS_INSTALL= ${PORTNAME} |
|
|
qt6_CONFLICTS_INSTALL= ${PORTNAME} |
|
|
|
|
|
|
|
|
USES= cmake desktop-file-utils gl gnome jpeg localbase \
|
|
|
USES= cmake compiler:c++20-lang desktop-file-utils gl gnome jpeg localbase \
|
|
|
minizip openal pkgconfig python:build ssl |
|
|
minizip openal pkgconfig python:build ssl |
|
|
|
|
|
|
|
|
USE_GITHUB= nodefault |
|
|
USE_GITHUB= nodefault |
|
@ -62,16 +63,19 @@ USE_QT= buildtools:build core dbus declarative gui imageformats network qmake:b |
|
|
svg widgets |
|
|
svg widgets |
|
|
USE_KDE= coreaddons kimageformats |
|
|
USE_KDE= coreaddons kimageformats |
|
|
.else |
|
|
.else |
|
|
USES+= qt:6 |
|
|
|
|
|
USE_QT= 5compat base declarative imageformats lottie shadertools svg tools:build |
|
|
USE_QT= 5compat base declarative imageformats lottie shadertools svg tools:build |
|
|
|
|
|
USES+= kde:6 qt:6 |
|
|
|
|
|
USE_KDE= coreaddons kimageformats |
|
|
.endif |
|
|
.endif |
|
|
|
|
|
|
|
|
USE_GL= gl |
|
|
USE_GL= gl |
|
|
USE_GNOME= glib20 glibmm26 introspection |
|
|
USE_GNOME= glib20 glibmm26 introspection |
|
|
|
|
|
|
|
|
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 \
|
|
|
CMAKE_ON= DESKTOP_APP_USE_PACKAGED DESKTOP_APP_DISABLE_CRASH_REPORTS \
|
|
|
DESKTOP_APP_DISABLE_SCUDO |
|
|
DESKTOP_APP_DISABLE_JEMALLOC \
|
|
|
|
|
|
DESKTOP_APP_DISABLE_SCUDO \
|
|
|
|
|
|
|
|
|
# Since cmake 3.25.0, BSDs are no longer recognised as Linux (in this port).
|
|
|
# Since cmake 3.25.0, BSDs are no longer recognised as Linux (in this port).
|
|
|
CMAKE_ARGS+= -DLINUX=true |
|
|
CMAKE_ARGS+= -DLINUX=true |
|
@ -83,11 +87,11 @@ LDFLAGS+= -lBlocksRuntime |
|
|
# It dynamically loads PulseAudio, and if this fails, it loads ALSA.
|
|
|
# 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.
|
|
|
# If both of them are not installed, then voice calls do not work, but other functionalities still work.
|
|
|
OPTIONS_DEFINE= SYSTEM_FONTS |
|
|
OPTIONS_DEFINE= SYSTEM_FONTS |
|
|
OPTIONS_DEFAULT= ALSA X11 |
|
|
OPTIONS_DEFAULT= ALSA WAYLAND X11 |
|
|
OPTIONS_GROUP= AUDIO |
|
|
OPTIONS_GROUP= AUDIO |
|
|
|
|
|
OPTIONS_MULTI= DESKTOP |
|
|
OPTIONS_GROUP_AUDIO= ALSA PULSEAUDIO |
|
|
OPTIONS_GROUP_AUDIO= ALSA PULSEAUDIO |
|
|
OPTIONS_SINGLE= DESKTOP |
|
|
OPTIONS_MULTI_DESKTOP= WAYLAND X11 |
|
|
OPTIONS_SINGLE_DESKTOP= X11 WAYLAND |
|
|
|
|
|
|
|
|
|
|
|
AUDIO_DESC= Audio backend for voice calls |
|
|
AUDIO_DESC= Audio backend for voice calls |
|
|
DESKTOP_DESC= Desktop integration |
|
|
DESKTOP_DESC= Desktop integration |
|
@ -112,9 +116,16 @@ TELEGRAM_API_ID= 601761 |
|
|
.include <bsd.port.options.mk> |
|
|
.include <bsd.port.options.mk> |
|
|
|
|
|
|
|
|
.if ${OPSYS} == FreeBSD && ((${OSVERSION} >= 1400000 && ${OSVERSION} < 1400091) || ${OSVERSION} < 1302507) |
|
|
.if ${OPSYS} == FreeBSD && ((${OSVERSION} >= 1400000 && ${OSVERSION} < 1400091) || ${OSVERSION} < 1302507) |
|
|
|
|
|
#EXTRA_PATCHES= ${PATCHDIR}/extra-patch-CMakeLists.txt
|
|
|
USES+= llvm:min=16,build |
|
|
USES+= llvm:min=16,build |
|
|
.else |
|
|
USES:= ${USES:Ncompiler\:*} # XXX avoid warnings |
|
|
USES+= compiler:c++20-lang |
|
|
.if defined(WITH_CCACHE_BUILD) && !defined(NO_CCACHE) |
|
|
|
|
|
CMAKE_ARGS+= -DCMAKE_CC_COMPILER_LAUNCHER="${LOCALBASE}/bin/ccache" \
|
|
|
|
|
|
-DCMAKE_CPP_COMPILER_LAUNCHER="${LOCALBASE}/bin/ccache" \
|
|
|
|
|
|
-DCMAKE_CXX_COMPILER_LAUNCHER="${LOCALBASE}/bin/ccache" |
|
|
|
|
|
.endif |
|
|
|
|
|
#.else
|
|
|
|
|
|
#USES+= compiler:c++20-lang
|
|
|
.endif |
|
|
.endif |
|
|
|
|
|
|
|
|
post-extract: |
|
|
post-extract: |
|
@ -128,18 +139,17 @@ post-extract: |
|
|
${WRKSRC}/Telegram/ThirdParty/hime \
|
|
|
${WRKSRC}/Telegram/ThirdParty/hime \
|
|
|
${WRKSRC}/Telegram/ThirdParty/hunspell \
|
|
|
${WRKSRC}/Telegram/ThirdParty/hunspell \
|
|
|
${WRKSRC}/Telegram/ThirdParty/jemalloc \
|
|
|
${WRKSRC}/Telegram/ThirdParty/jemalloc \
|
|
|
|
|
|
${WRKSRC}/Telegram/ThirdParty/jimf \
|
|
|
|
|
|
${WRKSRC}/Telegram/ThirdParty/kcoreaddons \
|
|
|
|
|
|
${WRKSRC}/Telegram/ThirdParty/kimageformats \
|
|
|
${WRKSRC}/Telegram/ThirdParty/lz4 \
|
|
|
${WRKSRC}/Telegram/ThirdParty/lz4 \
|
|
|
${WRKSRC}/Telegram/ThirdParty/minizip \
|
|
|
${WRKSRC}/Telegram/ThirdParty/minizip \
|
|
|
${WRKSRC}/Telegram/ThirdParty/jimf \
|
|
|
${WRKSRC}/Telegram/ThirdParty/plasma-wayland-protocols \
|
|
|
${WRKSRC}/Telegram/ThirdParty/range-v3 \
|
|
|
${WRKSRC}/Telegram/ThirdParty/range-v3 \
|
|
|
|
|
|
${WRKSRC}/Telegram/ThirdParty/wayland \
|
|
|
|
|
|
${WRKSRC}/Telegram/ThirdParty/wayland-protocols \
|
|
|
${WRKSRC}/Telegram/ThirdParty/xxHash |
|
|
${WRKSRC}/Telegram/ThirdParty/xxHash |
|
|
|
|
|
|
|
|
.if ${FLAVOR} == qt5 |
|
|
|
|
|
${RM} -rf \
|
|
|
|
|
|
${WRKSRC}/Telegram/ThirdParty/kcoreaddons \
|
|
|
|
|
|
${WRKSRC}/Telegram/ThirdParty/kimageformats |
|
|
|
|
|
.endif |
|
|
|
|
|
|
|
|
|
|
|
post-patch: |
|
|
post-patch: |
|
|
# XXX fix the following on every source file |
|
|
# XXX fix the following on every source file |
|
|
# warning: unknown warning option '-Wno-maybe-uninitialized' |
|
|
# warning: unknown warning option '-Wno-maybe-uninitialized' |
|
|