View | Details | Raw Unified | Return to bug 191790 | Differences between
and this patch

Collapse All | Expand All

(-)Mk/Uses/readline.mk (+17 lines)
Lines 6-11 Link Here
6
# Usage:	USES=readline
6
# Usage:	USES=readline
7
# Valid ARGS:	port
7
# Valid ARGS:	port
8
#
8
#
9
# User-specified readline wish:
10
# Usage:	READLINE_FLAVOR=ARG
11
# Valid ARG:	base (default), edit, port
12
#
9
# MAINTAINER: portmgr@FreeBSD.org
13
# MAINTAINER: portmgr@FreeBSD.org
10
14
11
.if !defined(_INCLUDE_USES_READLINE_MK)
15
.if !defined(_INCLUDE_USES_READLINE_MK)
Lines 12-20 Link Here
12
_INCLUDE_USES_READLINE_MK=	yes
16
_INCLUDE_USES_READLINE_MK=	yes
13
17
14
.if !exists(/usr/lib/libreadline.so)
18
.if !exists(/usr/lib/libreadline.so)
19
. if exists(/usr/include/edit/readline/readline.h)
20
readline_ARGS=	edit
21
. else
15
readline_ARGS=	port
22
readline_ARGS=	port
23
. endif
16
.endif
24
.endif
17
25
26
.if defined(READLINE_FLAVOR)
27
readline_ARGS=	${READLINE_FLAVOR}
28
.endif
29
30
.if defined(readline_ARGS) && ${readline_ARGS} == edit
31
CPPFLAGS+=		-I/usr/include/edit
32
LDFLAGS+=		-ledit
33
.endif
34
18
.if defined(readline_ARGS) && ${readline_ARGS} == port
35
.if defined(readline_ARGS) && ${readline_ARGS} == port
19
LIB_DEPENDS+=		libreadline.so.6:${PORTSDIR}/devel/readline
36
LIB_DEPENDS+=		libreadline.so.6:${PORTSDIR}/devel/readline
20
CPPFLAGS+=		-I${LOCALBASE}/include
37
CPPFLAGS+=		-I${LOCALBASE}/include

Return to bug 191790