1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/Mk/Uses/readline.mk
Yasuhiro Kimura c210d2ab69
Mk/Uses/readline.mk: Remove unnecessary 'port' argument
Currently no supported FreeBSD version has libreadline.so in base.
Then if 'USES=readline' is used devel/readline is always added to
dependency whether or not 'port' argument is specified.  So remove
unnecessary 'port' argument now.

PR:		248459
Exp-run by:	antoine
2021-05-15 09:14:05 +02:00

20 lines
430 B
Makefile

# handle dependency on the readline port
#
# Feature: readline
# Usage: USES=readline
#
# MAINTAINER: portmgr@FreeBSD.org
.if !defined(_INCLUDE_USES_READLINE_MK)
_INCLUDE_USES_READLINE_MK= yes
.if !empty(readline_ARGS)
IGNORE= Incorrect 'USES+= readline:${readline_ARGS}' readline takes no arguments
.endif
LIB_DEPENDS+= libreadline.so.8:devel/readline
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.endif