summaryrefslogtreecommitdiff
path: root/adk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-03-13 23:56:38 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-03-13 23:56:38 +0100
commit67ee55eaa0d1807e80f1161baf9dedc76b70771a (patch)
treefb6e2cf0cc3478f614d36606e6d3381157bc5eb1 /adk
parent9fb48ff07161975ac0f8185f5b226ca69e4fb70a (diff)
make menuconfig color fix for Darwin users
Prefer ncurses from Darwin base before brew installed ncurses. It seems brew ncurses have some issues with colors.
Diffstat (limited to 'adk')
-rw-r--r--adk/config/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/adk/config/Makefile b/adk/config/Makefile
index 48e10983b..480c31447 100644
--- a/adk/config/Makefile
+++ b/adk/config/Makefile
@@ -29,6 +29,10 @@ ifeq (/usr/include/ncurses/curses.h, $(wildcard /usr/include/ncurses/curses.h))
HOST_CFLAGS+= -I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"
LIBS+= -lncurses
else
+ifeq (/usr/include/ncurses.h, $(wildcard /usr/include/ncurses.h))
+HOST_CFLAGS+= -DCURSES_LOC="<ncurses.h>"
+LIBS+= -lncurses
+else
ifeq (/usr/local/include/ncurses/ncurses.h, $(wildcard /usr/local/include/ncurses/ncurses.h))
HOST_CFLAGS+= -I/usr/local/include/ncurses -DCURSES_LOC="<ncurses.h>"
LIBS+= -lncurses
@@ -45,10 +49,6 @@ ifeq (/usr/pkg/include/ncurses.h, $(wildcard /usr/pkg/include/ncurses.h))
HOST_CFLAGS+= -I/usr/pkg/include -DCURSES_LOC="<ncurses.h>"
LIBS+= -L/usr/pkg/lib -Wl,-rpath -Wl,/usr/pkg/lib -lncurses
else
-ifeq (/usr/include/ncurses.h, $(wildcard /usr/include/ncurses.h))
-HOST_CFLAGS+= -DCURSES_LOC="<ncurses.h>"
-LIBS+= -lncurses
-else
HOST_CFLAGS+= -DCURSES_LOC="<curses.h>"
LIBS= -lcurses
endif