2013-05-06 17:31:45 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# handle dependency on the readline port
|
|
|
|
#
|
|
|
|
# Feature: readline
|
|
|
|
# Usage: USES=readline
|
|
|
|
# Valid ARGS: port
|
|
|
|
#
|
2014-03-15 11:31:54 +01:00
|
|
|
# MAINTAINER: portmgr@FreeBSD.org
|
2013-05-06 17:31:45 +02:00
|
|
|
|
|
|
|
.if !defined(_INCLUDE_USES_READLINE_MK)
|
|
|
|
_INCLUDE_USES_READLINE_MK= yes
|
|
|
|
|
2013-11-05 15:26:41 +01:00
|
|
|
.if !exists(/usr/lib/libreadline.so)
|
2013-09-16 00:15:58 +02:00
|
|
|
readline_ARGS= port
|
|
|
|
.endif
|
2013-05-06 17:31:45 +02:00
|
|
|
|
2014-09-28 18:36:31 +02:00
|
|
|
.if ${readline_ARGS} == port
|
2017-06-27 15:46:53 +02:00
|
|
|
LIB_DEPENDS+= libreadline.so.7:devel/readline
|
2013-05-06 17:31:45 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-07-28 12:22:54 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2013-05-06 17:31:45 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif
|