summaryrefslogtreecommitdiff
path: root/adk/config/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'adk/config/Makefile')
-rw-r--r--adk/config/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/adk/config/Makefile b/adk/config/Makefile
index 8eb45f5c0..7e91da1bf 100644
--- a/adk/config/Makefile
+++ b/adk/config/Makefile
@@ -27,6 +27,10 @@ else
ifeq (/usr/local/include/ncurses/curses.h, $(wildcard /usr/local/include/ncurses/curses.h))
HOST_CFLAGS+= -I/usr/local/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"
else
+ifeq (/usr/local/opt/ncurses/include/ncursesw/ncurses.h, $(wildcard /usr/local/opt/ncurses/include/ncursesw/ncurses.h))
+HOST_CFLAGS+= -I/usr/local/opt/ncurses/include -DCURSES_LOC="<ncursesw/ncurses.h>"
+LIBS+= -L/usr/local/opt/ncurses/lib -Wl,-rpath -Wl,/usr/local/opt/ncurses/lib
+else
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
@@ -42,6 +46,7 @@ endif
endif
endif
endif
+endif
CONF_SRC =conf.c
MCONF_SRC =mconf.c $(wildcard lxdialog/*.c)