diff --git a/net-im/telegram-desktop/Makefile b/net-im/telegram-desktop/Makefile index ef7de2afa72e..e733053c946d 100644 --- a/net-im/telegram-desktop/Makefile +++ b/net-im/telegram-desktop/Makefile @@ -72,13 +72,14 @@ NO_CCACHE= yes # Telegram uses OpenAL for its audio, but libtgvoip (for voice calls) can use PulseAudio or 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. -OPTIONS_DEFINE= WEBKIT -OPTIONS_DEFAULT= ALSA +OPTIONS_DEFINE= WEBKIT EMBEDDED_FONTS +OPTIONS_DEFAULT= ALSA EMBEDDED_FONTS OPTIONS_MULTI= AUDIO OPTIONS_MULTI_AUDIO= ALSA PULSEAUDIO AUDIO_DESC= Audio backend for voice calls WEBKIT_DESC= WebKit-gtk integration for payments +EMBEDDED_FONTS_DESC= Embed default OpenSans fonts bundled by Telegram ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio @@ -99,4 +100,8 @@ CC= ${LOCALBASE}/bin/clang${LLVM_VER} CXX= ${LOCALBASE}/bin/clang++${LLVM_VER} .endif +post-patch-EMBEDDED_FONTS-off: + ${FIND} ${WRKSRC} -iname '*.ttf' | ${XARGS} -n1 truncate -s0 + ${REINPLACE_CMD} 's/DemiBold/Bold/g' ${WRKSRC}/Telegram/lib_ui/ui/style/style_core_font.cpp + .include