freebsd-ports/Mk/Uses/readline.mk
Baptiste Daroussin 421767bd88 Remove the now unneeded ${PORTSDIR} from dependency definition in
The infrastructure Makefiles

PR:		206569
Exp run by:	antoine
Differential Revision:	D5047
2016-03-27 01:23:25 +00:00

24 lines
449 B
Makefile

# $FreeBSD$
#
# handle dependency on the readline port
#
# Feature: readline
# Usage: USES=readline
# Valid ARGS: port
#
# MAINTAINER: portmgr@FreeBSD.org
.if !defined(_INCLUDE_USES_READLINE_MK)
_INCLUDE_USES_READLINE_MK= yes
.if !exists(/usr/lib/libreadline.so)
readline_ARGS= port
.endif
.if ${readline_ARGS} == port
LIB_DEPENDS+= libreadline.so.6:devel/readline
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.endif
.endif