1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 20:03:02 +01:00

Merge pull request #280 from DomT4/darwin

Darwin Build
This commit is contained in:
Sean 2015-02-09 21:05:10 -08:00
commit b9fe6bfa10
2 changed files with 15 additions and 0 deletions

View File

@ -41,6 +41,11 @@ Toxic is ~~secretly a nTox fork~~ a [Tox](https://tox.im)-based instant messengi
* `DISABLE_SOUND_NOTIFY=1` → build toxic without sound notifications support
* `DISABLE_DESKTOP_NOTIFY=1` → build toxic without desktop notifications support
### OS X Compile
Using [Homebrew](http://brew.sh): `brew install openal-soft freealut libconfig && brew install https://raw.githubusercontent.com/Tox/homebrew-tox/master/Formula/libtoxcore.rb && brew install https://raw.githubusercontent.com/Homebrew/homebrew-x11/master/libnotify.rb`.
You can omit `libnotify` if you intend to build without desktop notifications enabled.
### 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=""`:

10
cfg/systems/Darwin.mk Normal file
View File

@ -0,0 +1,10 @@
# Special options for OS X
# This assumes the use of Homebrew. Change the paths if using MacPorts or Fink.
PKG_CONFIG_PATH = $(shell export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/opt/libconfig/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig)
LIBS := $(filter-out ncursesw, $(LIBS))
# OS X ships a usable, recent version of ncurses, but calls it ncurses not ncursesw.
LDFLAGS += -lncurses -lalut -ltoxav -ltoxcore -ltoxdns -lresolv -lconfig -ltoxencryptsave -g
CFLAGS += -I/usr/local/opt/freealut/include/AL -I/usr/local/opt/glib/include/glib-2.0 -g