- Use PKG_BIN make variable, instead of pkg in pre-everything target

to fix brokenness when building with Synth (ports-mgmt/synth)

Reported by:	Bryan Erickson <freebsd at xorcara dot com>
This commit is contained in:
Ashish SHUKLA 2019-02-18 05:07:58 +00:00
parent 79f75df02f
commit 73b81f8090
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=493242

View File

@ -158,7 +158,7 @@ ICONV_LDFLAGS= ${ICONV_LIB}
DOCS_MAKE_ARGS_OFF= NOPORTDOCS=yes
pre-everything::
@if pkg query %n-%v net-im/ejabberd; then \
@if ${PKG_BIN} query %n-%v net-im/ejabberd; then \
${ECHO_MSG} needs to be uninstalled, before this port build could proceed. ; \
${ECHO_MSG} For details: https://github.com/processone/ejabberd/issues/2194 ; \
${ECHO_MSG} Sorry for the inconvenience. ; \