Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/ncurses.mk
Show All 31 Lines | |||||
. else | . else | ||||
ncurses_ARGS= port | ncurses_ARGS= port | ||||
. endif | . endif | ||||
.endif | .endif | ||||
.if ${ncurses_ARGS} == base | .if ${ncurses_ARGS} == base | ||||
NCURSESBASE= /usr | NCURSESBASE= /usr | ||||
NCURSESINC= ${NCURSESBASE}/include | NCURSESINC= ${NCURSESBASE}/include | ||||
.if !exists(/usr/lib/libncursesw.so) | |||||
NCURSES_IMPL= ncurses | |||||
.endif | |||||
. if exists(${LOCALBASE}/lib/libncurses.so) | . if exists(${LOCALBASE}/lib/libncurses.so) | ||||
_USES_sanity+= 400:check-depends-ncurses | _USES_sanity+= 400:check-depends-ncurses | ||||
check-depends-ncurses: | check-depends-ncurses: | ||||
@${ECHO_CMD} "Dependency error: this port wants the ncurses library from the FreeBSD" | @${ECHO_CMD} "Dependency error: this port wants the ncurses library from the FreeBSD" | ||||
@${ECHO_CMD} "base system. You can't build against it, while a newer" | @${ECHO_CMD} "base system. You can't build against it, while a newer" | ||||
@${ECHO_CMD} "version is installed by a port." | @${ECHO_CMD} "version is installed by a port." | ||||
@${ECHO_CMD} "Please deinstall the port or undefine WITH_NCURSES_BASE." | @${ECHO_CMD} "Please deinstall the port or undefine WITH_NCURSES_BASE." | ||||
Show All 32 Lines | |||||
.endif | .endif | ||||
LDFLAGS+= -Wl,-rpath=${NCURSESRPATH} | LDFLAGS+= -Wl,-rpath=${NCURSESRPATH} | ||||
.else | .else | ||||
.error USES=ncurses only accept 'port' and 'base' as arguments, got ${ncurses_ARGS} | .error USES=ncurses only accept 'port' and 'base' as arguments, got ${ncurses_ARGS} | ||||
.endif | .endif | ||||
NCURSESLIB= ${NCURSESBASE}/lib | NCURSESLIB= ${NCURSESBASE}/lib | ||||
NCURSES_IMPL?= ncursesw | |||||
.endif | .endif |