- zlib 1.2.11: homebrew/core
- OpenSSL 1.0.2: homebrew/core
- xz-5.2.3: homebrew/core
- libexif 0.6.21: homebrew/core
- OpenAL Soft
- opus-1.1*.4*: homebrew/core
- pkg-config: homebrew/core
- ffmpeg-3.2
- libiconv-1.15: homebrew/core
- Qt 5.6.2 patched: I'm 100% sure I'm doing it wrong, but it works
- gyp
- Google Crashpad: build it on your own following official instructions (except gyp PATH, take it from gyp-td installation) -- or just export
TDESKTOP_BUILD_DEFINES=TDESKTOP_DISABLE_CRASH_REPORTS
- Install homebrew
- Tap this repo (
brew tap stek29/tdesktop
). Btw, after that repo would be cloned to$(brew --repo stek29/tdesktop)
, and you could take patches and other stuff from there. - Install all the formulas, following order in official instructions: zlib, openssl, libexif, openal-soft-td, opus, ffmpeg-td, libiconv, qt5-td (this one would be really sloooooow), gyp-td
- Apply gyp.diff patch to tdesktop
- If you really want to get crashpad, clone depot_tools to Libraries, and then follow official instructions starting at 'Build crashpad', but instead of
/Users/user/TBuild/Libraries/gyp
add/usr/local/opt/gyp-td/bin
to PATH. Or you could try not to use crashpad. - If you don't want to, apply no_crashpad.diff
- I also highly recommend you to disable autoupdate by adding
TDESKTOP_DISABLE_AUTOUPDATE
in Telegram.gyp's defines