freebsd-ports/Mk/Uses/readline.mk

25 lines
449 B
Makefile
Raw Normal View History

2013-05-06 17:31:45 +02:00
# $FreeBSD$
#
# handle dependency on the readline port
#
# Feature: readline
# Usage: USES=readline
# Valid ARGS: port
#
# MAINTAINER: portmgr@FreeBSD.org
2013-05-06 17:31:45 +02:00
.if !defined(_INCLUDE_USES_READLINE_MK)
_INCLUDE_USES_READLINE_MK= yes
.if !exists(/usr/lib/libreadline.so)
readline_ARGS= port
.endif
2013-05-06 17:31:45 +02:00
.if ${readline_ARGS} == port
LIB_DEPENDS+= libreadline.so.7:devel/readline
2013-05-06 17:31:45 +02:00
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
2013-05-06 17:31:45 +02:00
.endif
.endif