Sync Mk with ports
[dports.git] / Mk / Uses / readline.mk
1 # $FreeBSD$
2 #
3 # handle dependency on the readline port
4 #
5 # Feature:      readline
6 # Usage:        USES=readline
7 # Valid ARGS:   port
8 #
9 # MAINTAINER: portmgr@FreeBSD.org
10
11 .if !defined(_INCLUDE_USES_READLINE_MK)
12 _INCLUDE_USES_READLINE_MK=      yes
13
14 .if !exists(/usr/lib/libreadline.so)
15 readline_ARGS=  port
16 .endif
17
18 .if ${readline_ARGS} == port
19 LIB_DEPENDS+=           libreadline.so.6:devel/readline
20 CPPFLAGS+=              -I${LOCALBASE}/include
21 LDFLAGS+=               -L${LOCALBASE}/lib
22 .endif
23
24 .endif