Use macro PKG_QUERY instead of hardcoded pkg query

Submitted by:	tgyurci@gmail.com
Differential Revision:	https://reviews.freebsd.org/D8700
This commit is contained in:
Baptiste Daroussin 2020-07-21 19:16:13 +00:00
parent 75ce1dd92c
commit 15ed325b44
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=542782

View file

@ -67,7 +67,7 @@ NCURSES_INSTALLED?=
.if ${NCURSES_INSTALLED} != ""
NCURSES_PORT= ${NCURSES_INSTALLED}
NCURSES_SHLIBFILE!= ${PKG_INFO} -ql ${NCURSES_INSTALLED} | grep -m 1 "^`pkg query "%p" ${NCURSES_INSTALLED}`/lib/libncurses.so."
NCURSES_SHLIBFILE!= ${PKG_INFO} -ql ${NCURSES_INSTALLED} | grep -m 1 "^`${PKG_QUERY} "%p" ${NCURSES_INSTALLED}`/lib/libncurses.so."
NCURSES_SHLIBVER?= ${NCURSES_SHLIBFILE:E}
.endif