mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
5b4f2ad658
make things a bit more consistent. Approved by: portmgr (bapt)
25 lines
498 B
Makefile
25 lines
498 B
Makefile
# $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 defined(readline_ARGS) && ${readline_ARGS} == port
|
|
LIB_DEPENDS+= libreadline.so.6:${PORTSDIR}/devel/readline
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lreadline
|
|
.endif
|
|
|
|
.endif
|