Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/readline.mk
Show All 10 Lines | |||||
.if !defined(_INCLUDE_USES_READLINE_MK) | .if !defined(_INCLUDE_USES_READLINE_MK) | ||||
_INCLUDE_USES_READLINE_MK= yes | _INCLUDE_USES_READLINE_MK= yes | ||||
.if !exists(/usr/lib/libreadline.so) | .if !exists(/usr/lib/libreadline.so) | ||||
readline_ARGS= port | readline_ARGS= port | ||||
.endif | .endif | ||||
.if ${readline_ARGS} == port | .if ${readline_ARGS} == port | ||||
LIB_DEPENDS+= libreadline.so.6:${PORTSDIR}/devel/readline | LIB_DEPENDS+= libreadline.so.6:devel/readline | ||||
CPPFLAGS+= -I${LOCALBASE}/include | CPPFLAGS+= -I${LOCALBASE}/include | ||||
LDFLAGS+= -L${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib | ||||
.endif | .endif | ||||
.endif | .endif |