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