From 7621fe9a62d6ed9816dca52f690f316705640135 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Sun, 1 Apr 2018 11:10:17 +1000 Subject: [PATCH] fix macOS build (#494) --- INSTALL.md | 4 +++- cfg/systems/Darwin.mk | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index c1af971..c97871d 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -27,9 +27,11 @@ #### OS X Notes Using [Homebrew](http://brew.sh): ``` -brew install openal-soft freealut libconfig +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. diff --git a/cfg/systems/Darwin.mk b/cfg/systems/Darwin.mk index 2ddd9c5..ca83644 100644 --- a/cfg/systems/Darwin.mk +++ b/cfg/systems/Darwin.mk @@ -6,7 +6,7 @@ PKG_CONFIG_PATH = $(shell export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/o 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 -lcurl -lconfig -ltoxencryptsave -g +LDFLAGS += -lncurses -lalut -ltoxcore -lcurl -lconfig -lqrencode -lpng -lopenal -g CFLAGS += -I/usr/local/opt/freealut/include/AL -I/usr/local/opt/glib/include/glib-2.0 -g OSX_LIBRARIES = -lobjc -lresolv