diff options
author | Iku <iku@yokattana.com> | 2017-11-18 23:29:54 +0100 |
---|---|---|
committer | Iku <iku@yokattana.com> | 2017-11-18 23:29:54 +0100 |
commit | c40b282517d1c4f44017fbbaeef0fc95e1fcb429 (patch) | |
tree | 8f31b3dc31749a55c0630bf83dbe33cfcdbd941a /src/Makefile | |
parent | 070722299c9cfeb49d96a62b42db969499f3f37d (diff) |
Always use system ncurses on macOS
Removing the unneeded dependency on Homebrew ncursesw, as macOS system
ncurses also includes wide character support and is compatible with sc-im.
System ncurses is already used for the vanilla build:
https://github.com/andmarti1424/sc-im/pull/183
Diffstat (limited to 'src/Makefile')
-rwxr-xr-x | src/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index af7355e..e3770c7 100755 --- a/src/Makefile +++ b/src/Makefile @@ -92,7 +92,10 @@ ifneq (, $(shell which pkg-config)) # Any system with pkg-config # NOTE: ncursesw (required) - ifneq ($(shell pkg-config --exists ncursesw || echo 'no'),no) + ifeq ($(shell uname -s),Darwin) + # macOS' ncurses is built with wide-char support + LDFLAGS += -lncurses + else ifneq ($(shell pkg-config --exists ncursesw || echo 'no'),no) CFLAGS += $(shell pkg-config --cflags ncursesw) LDLIBS += $(shell pkg-config --libs ncursesw) else ifneq ($(shell pkg-config --exists ncurses || echo 'no'),no) |