mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
16c627dc09
With hat: portmgr
26 lines
500 B
Makefile
26 lines
500 B
Makefile
# $FreeBSD$
|
|
#
|
|
# handle dependency on the readline port
|
|
#
|
|
# MAINTAINER: portmgr@FreeBSD.org
|
|
#
|
|
# Feature: readline
|
|
# Usage: USES=readline
|
|
# Valid ARGS: port
|
|
#
|
|
|
|
.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
|