diff options
-rw-r--r-- | Mk/Uses/ncurses.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Mk/Uses/ncurses.mk b/Mk/Uses/ncurses.mk index 3a6a30e78476..6fad636a5ab4 100644 --- a/Mk/Uses/ncurses.mk +++ b/Mk/Uses/ncurses.mk @@ -35,9 +35,6 @@ ncurses_ARGS= port .if ${ncurses_ARGS} == base NCURSESBASE= /usr NCURSESINC= ${NCURSESBASE}/include -.if !exists(/usr/lib/libncursesw.so) -NCURSES_IMPL= ncurses -.endif . if exists(${LOCALBASE}/lib/libncurses.so) _USES_sanity+= 400:check-depends-ncurses @@ -75,6 +72,8 @@ NCURSES_SHLIBVER?= 6 BUILD_DEPENDS+= ${LOCALBASE}/lib/libncurses.so.${NCURSES_SHLIBVER}:${NCURSES_PORT} RUN_DEPENDS+= ${LOCALBASE}/lib/libncurses.so.${NCURSES_SHLIBVER}:${NCURSES_PORT} NCURSESRPATH= ${NCURSESBASE}/lib +TINFO_LIB= -ltinfo +NCURSES_LIB= -lncurses .if defined(NCURSES_RPATH) CFLAGS+= -Wl,-rpath,${NCURSESRPATH} @@ -87,5 +86,8 @@ LDFLAGS+= -Wl,-rpath=${NCURSESRPATH} NCURSESLIB= ${NCURSESBASE}/lib NCURSES_IMPL?= ncursesw +TINFO_LIB?= -ltinfow +NCURSES_LIB?= -lncursesw +NCURSESLIBS= ${NCURSES_LIB} ${TINFO_LIB} .endif |