Fix build on -current.

This is an ugly fix, and makes some assumptions, but necessary as
Uses/readline.mk doesn't export which path it's using, it just modifies *FLAGS
directly.
This commit is contained in:
Adam Weinberger 2014-08-30 22:58:38 +00:00
parent 6be83b2931
commit 4a5caa8357
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366691

View file

@ -16,6 +16,7 @@ LIB_DEPENDS= libxerces-c.so:${PORTSDIR}/textproc/xerces-c3
OPTIONS_DEFINE= READLINE
OPTIONS_DEFAULT=READLINE
OPTIONS_SUB= yes
READLINE_DESC= Enable readline support
USE_OPENSSL= yes
@ -34,10 +35,11 @@ USES= gmake
.if ${PORT_OPTIONS:MREADLINE}
USES+= readline
PLIST_SUB+= READLINE=""
. if !exists(/usr/lib/libreadline.so)
CONFIGURE_ARGS+=--with-readline-includes=${LOCALBASE}/include
. endif
.else
CONFIGURE_ENV+= ac_cv_lib_readline_readline=no
PLIST_SUB+= READLINE="@comment "
.endif
post-patch: