1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-16 05:23:03 +01:00
toxic/INSTALL.md

68 lines
3.7 KiB
Markdown
Raw Normal View History

2015-02-17 11:01:31 +01:00
# Installation
2017-04-12 18:00:43 +02:00
* [Dependencies](#dependencies)
* [OS X Notes](#os-x-notes)
2015-02-17 11:01:31 +01:00
* [Compiling](#compiling)
2017-04-12 18:00:43 +02:00
* [Documentation](#documentation)
2015-02-17 11:01:31 +01:00
* [Notes](#notes)
2017-04-12 18:00:43 +02:00
* [Compilation variables](#compilation-variables)
2015-02-17 11:01:31 +01:00
* [Packaging](#packaging)
## Dependencies
| Name | Needed by | Debian package |
|------------------------------------------------------|----------------------------|---------------------|
| [Tox Core](https://github.com/toktok/c-toxcore) | BASE | *None* |
| [NCurses](https://www.gnu.org/software/ncurses) | BASE | libncursesw5-dev |
| [LibConfig](http://www.hyperrealm.com/libconfig) | BASE | libconfig-dev |
| [GNUmake](https://www.gnu.org/software/make) | BASE | make |
| [libcurl](http://curl.haxx.se/) | BASE | libcurl4-openssl-dev|
2018-06-16 05:07:16 +02:00
| [libqrencode](https://fukuchi.org/works/qrencode/) | QRCODE | libqrencode-dev |
| [OpenAL](http://openal.org) | AUDIO, SOUND NOTIFICATIONS | libopenal-dev |
| [OpenALUT](http://openal.org) | SOUND NOTIFICATIONS | libalut-dev |
| [LibNotify](https://developer.gnome.org/libnotify) | DESKTOP NOTIFICATIONS | libnotify-dev |
2017-05-20 03:09:29 +02:00
| [Python 3](http://www.python.org/) | PYTHON | python3-dev |
| [AsciiDoc](http://asciidoc.org/index.html) | DOCUMENTATION<sup>1</sup> | asciidoc |
2015-02-17 11:01:31 +01:00
2017-04-12 18:00:43 +02:00
<sup>1</sup>: see [Documentation](#documentation)
2015-02-17 11:01:31 +01:00
#### OS X Notes
Using [Homebrew](http://brew.sh):
```
2018-04-01 03:10:17 +02:00
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
2018-04-01 03:10:17 +02:00
export PKG_CONFIG_PATH=/usr/local/opt/openal-soft/lib/pkgconfig
make
2015-02-17 11:01:31 +01:00
```
You can omit `libnotify` if you intend to build without desktop notifications enabled.
2015-02-17 11:01:31 +01:00
## Compiling
```
2018-10-02 23:31:14 +02:00
make
sudo env PREFIX="/where/to/install" make install
2015-02-17 11:01:31 +01:00
```
#### Documentation
Run `make doc` in the build directory after editing the asciidoc files to regenerate the manpages.<br />
**NOTE FOR DEVELOPERS**: asciidoc files and generated manpages will need to be commited together.<br />
**NOTE FOR EVERYONE**: [asciidoc](http://asciidoc.org/index.html) (and this step) is only required for regenerating manpages when you modify them.
## Notes
#### Compilation variables
2018-10-02 23:31:14 +02:00
* You can add specific flags to the Makefile with `USER_CFLAGS=""` and `USER_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
2015-02-17 11:01:31 +01:00
* 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 support
* `DISABLE_SOUND_NOTIFY=1` → build toxic without sound notifications support
* `DISABLE_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
2015-02-17 11:01:31 +01:00
#### Packaging
* For packaging purpose, you can use `DESTDIR=""` to specify a directory where to store installed files
* `DESTDIR=""` can be used in addition to `PREFIX=""`:
* `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")