mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-16 03:03:02 +01:00
3.7 KiB
3.7 KiB
Installation
Dependencies
Name | Needed by | Debian package |
---|---|---|
Tox Core | BASE | None |
NCurses | BASE | libncursesw5-dev |
LibConfig | BASE | libconfig-dev |
GNUmake | BASE | make |
libcurl | BASE | libcurl4-openssl-dev |
libqrencode | QRCODE | libqrencode-dev |
OpenAL | AUDIO, SOUND NOTIFICATIONS | libopenal-dev |
OpenALUT | SOUND NOTIFICATIONS | libalut-dev |
LibNotify | DESKTOP NOTIFICATIONS | libnotify-dev |
Python 3 | PYTHON | python3-dev |
AsciiDoc | DOCUMENTATION1 | asciidoc |
1: see Documentation
OS X Notes
Using Homebrew:
brew install curl qrencode openal-soft freealut libconfig libpng
brew install --HEAD https://raw.githubusercontent.com/Tox/homebrew-tox/master/Formula/libtoxcore.rb
brew install libnotify
export PKG_CONFIG_PATH=/usr/local/opt/openal-soft/lib/pkgconfig
make
You can omit libnotify
if you intend to build without desktop notifications enabled.
Compiling
make
sudo env PREFIX="/where/to/install" make install
Documentation
Run make doc
in the build directory after editing the asciidoc files to regenerate the manpages.
NOTE FOR DEVELOPERS: asciidoc files and generated manpages will need to be commited together.
NOTE FOR EVERYONE: asciidoc (and this step) is only required for regenerating manpages when you modify them.
Notes
Compilation variables
- You can add specific flags to the Makefile with
USER_CFLAGS=""
andUSER_LDFLAGS=""
passed as the arguments to make or as environment variables - You can use CFLAGS and LDFLAGS environment variables to add specific flags to the Makefile
- Additional features are automatically enabled if all dependencies are found, but you can disable them by using special variables:
DISABLE_X11=1
→ build toxic without X11 support (needed for focus tracking)DISABLE_AV=1
→ build toxic without audio call supportDISABLE_SOUND_NOTIFY=1
→ build toxic without sound notifications supportDISABLE_DESKTOP_NOTIFY=1
→ build toxic without desktop notifications support
- Features excluded from the default build must be explicitly enabled using special variables:
ENABLE_PYTHON=1
→ build toxic with Python scripting support
Packaging
- For packaging purpose, you can use
DESTDIR=""
to specify a directory where to store installed files DESTDIR=""
can be used in addition toPREFIX=""
:DESTDIR=""
is meant to specify a directory where to store installed files (ex: "/tmp/build/pkg")PREFIX=""
is meant to specify a prefix directory for binaries and data files (ex: "/usr/local")