aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses/readline.mk
blob: fbd77ab258b967bf9462cfa1e949fe3bd5485c51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# $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:${PORTSDIR}/devel/readline
CPPFLAGS+=      -I${LOCALBASE}/include
LDFLAGS+=       -L${LOCALBASE}/lib
.endif

.endif