Lines 72-84
NO_CCACHE= yes
Link Here
|
72 |
# Telegram uses OpenAL for its audio, but libtgvoip (for voice calls) can use PulseAudio or ALSA. |
72 |
# Telegram uses OpenAL for its audio, but libtgvoip (for voice calls) can use PulseAudio or ALSA. |
73 |
# It dynamically loads PulseAudio, and if this fails, it loads ALSA. |
73 |
# It dynamically loads PulseAudio, and if this fails, it loads ALSA. |
74 |
# If both of them are not installed, then voice calls do not work, but other functionalities still work. |
74 |
# If both of them are not installed, then voice calls do not work, but other functionalities still work. |
75 |
OPTIONS_DEFINE= WEBKIT |
75 |
OPTIONS_DEFINE= WEBKIT EMBEDDED_FONTS |
76 |
OPTIONS_DEFAULT= ALSA |
76 |
OPTIONS_DEFAULT= ALSA EMBEDDED_FONTS |
77 |
OPTIONS_MULTI= AUDIO |
77 |
OPTIONS_MULTI= AUDIO |
78 |
OPTIONS_MULTI_AUDIO= ALSA PULSEAUDIO |
78 |
OPTIONS_MULTI_AUDIO= ALSA PULSEAUDIO |
79 |
|
79 |
|
80 |
AUDIO_DESC= Audio backend for voice calls |
80 |
AUDIO_DESC= Audio backend for voice calls |
81 |
WEBKIT_DESC= WebKit-gtk integration for payments |
81 |
WEBKIT_DESC= WebKit-gtk integration for payments |
|
|
82 |
EMBEDDED_FONTS_DESC= Embed default OpenSans fonts bundled by Telegram |
82 |
|
83 |
|
83 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
84 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
84 |
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio |
85 |
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio |
Lines 99-102
CC= ${LOCALBASE}/bin/clang${LLVM_VER}
Link Here
|
99 |
CXX= ${LOCALBASE}/bin/clang++${LLVM_VER} |
100 |
CXX= ${LOCALBASE}/bin/clang++${LLVM_VER} |
100 |
.endif |
101 |
.endif |
101 |
|
102 |
|
|
|
103 |
post-patch-EMBEDDED_FONTS-off: |
104 |
${FIND} ${WRKSRC} -iname '*.ttf' | ${XARGS} -n1 truncate -s0 |
105 |
${REINPLACE_CMD} 's/DemiBold/Bold/g' ${WRKSRC}/Telegram/lib_ui/ui/style/style_core_font.cpp |
106 |
|
102 |
.include <bsd.port.post.mk> |
107 |
.include <bsd.port.post.mk> |