Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/readline.mk
# handle dependency on the readline port | # handle dependency on the readline port | ||||
# | # | ||||
# Feature: readline | # Feature: readline | ||||
# Usage: USES=readline | # Usage: USES=readline | ||||
# | # | ||||
# MAINTAINER: ports@FreeBSD.org | # MAINTAINER: ports@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_READLINE_MK) | .if !defined(_INCLUDE_USES_READLINE_MK) | ||||
_INCLUDE_USES_READLINE_MK= yes | _INCLUDE_USES_READLINE_MK= yes | ||||
.if !empty(readline_ARGS) | . if !empty(readline_ARGS) | ||||
IGNORE= Incorrect 'USES+= readline:${readline_ARGS}' readline takes no arguments | IGNORE= Incorrect 'USES+= readline:${readline_ARGS}' readline takes no arguments | ||||
.endif | . endif | ||||
LIB_DEPENDS+= libreadline.so.8:devel/readline | LIB_DEPENDS+= libreadline.so.8:devel/readline | ||||
CPPFLAGS+= -I${LOCALBASE}/include | CPPFLAGS+= -I${LOCALBASE}/include | ||||
LDFLAGS+= -L${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib | ||||
.endif | .endif |