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

Collapse All | Expand All

(-)Mk/Uses/readline.mk (-2 / +18 lines)
Lines 4-20 Link Here
4
#
4
#
5
# Feature:	readline
5
# Feature:	readline
6
# Usage:	USES=readline
6
# Usage:	USES=readline
7
# Valid ARGS:	port
7
# Valid ARG:	base (default), edit, 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)
12
_INCLUDE_USES_READLINE_MK=	yes
16
_INCLUDE_USES_READLINE_MK=	yes
13
17
14
.if !exists(/usr/lib/libreadline.so)
18
.if !defined(readline_ARGS) && !exists(/usr/lib/libreadline.so)
15
readline_ARGS=	port
19
readline_ARGS=	port
16
.endif
20
.endif
17
21
22
.if defined(READLINE_FLAVOR)
23
readline_ARGS=	${READLINE_FLAVOR}
24
.endif
25
26
.if defined(readline_ARGS) && ${readline_ARGS} == edit
27
. if !exists(/usr/include/edit/readline/readline.h)
28
IGNORE=	USES=readline:edit requires readline compatibility headers
29
. endif
30
CPPFLAGS+=		-I/usr/include/edit
31
LDFLAGS+=		-ledit
32
.endif
33
18
.if defined(readline_ARGS) && ${readline_ARGS} == port
34
.if defined(readline_ARGS) && ${readline_ARGS} == port
19
LIB_DEPENDS+=		libreadline.so.6:${PORTSDIR}/devel/readline
35
LIB_DEPENDS+=		libreadline.so.6:${PORTSDIR}/devel/readline
20
CPPFLAGS+=		-I${LOCALBASE}/include
36
CPPFLAGS+=		-I${LOCALBASE}/include

Return to bug 191790