summaryrefslogtreecommitdiff
path: root/net-im/telegram-desktop
diff options
context:
space:
mode:
authorSergey Kiselev <root@dc365.ru>2023-04-14 10:46:12 +0200
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2023-04-15 19:02:28 +0200
commitdf46d88b7b8448290d1196ef0c3ff6acaf342b60 (patch)
tree30a5151ae393a4a0774cd96b30474c4602ff7881 /net-im/telegram-desktop
parentscience/afni: update to 23.1.00 (diff)
net-im/telegram-desktop: Improve audio options
libtgvoip can use PulseAudio or ALSA. However, both of these libraries were listed as BUILD_DEPENDS and were forced to be installed on the system. PR: 270830 Reported by: root@dc365.ru
Diffstat (limited to 'net-im/telegram-desktop')
-rw-r--r--net-im/telegram-desktop/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/net-im/telegram-desktop/Makefile b/net-im/telegram-desktop/Makefile
index 0c951f46d621..cad0292d610c 100644
--- a/net-im/telegram-desktop/Makefile
+++ b/net-im/telegram-desktop/Makefile
@@ -16,9 +16,7 @@ BROKEN_i386= does not build, webrtc related
NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe
NOT_FOR_ARCHS_REASON= Only little endian is supported
-BUILD_DEPENDS= alsa-lib>0:audio/alsa-lib \
- microsoft-gsl>0:devel/microsoft-gsl \
- pulseaudio>0:audio/pulseaudio \
+BUILD_DEPENDS= microsoft-gsl>0:devel/microsoft-gsl \
range-v3>0:devel/range-v3 \
tl-expected>0:devel/tl-expected \
v4l_compat>0:multimedia/v4l_compat \
@@ -85,13 +83,15 @@ 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_DEFAULT= ALSA
-OPTIONS_MULTI= AUDIO
-OPTIONS_MULTI_AUDIO= ALSA PULSEAUDIO
+OPTIONS_GROUP= AUDIO
+OPTIONS_GROUP_AUDIO= ALSA PULSEAUDIO
AUDIO_DESC= Audio backend for voice calls
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
+ALSA_CMAKE_BOOL_OFF= LIBTGVOIP_DISABLE_ALSA
+PULSEAUDIO_CMAKE_BOOL_OFF= LIBTGVOIP_DISABLE_PULSEAUDIO
# Telegram asks each custom build to have its own API ID and hash.
TELEGRAM_API_HASH= 20a3432aab43f24bb4460fceac5ba38d