1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

Add new Makefile target "install-missing-packages" to install missing dependencies from packages.

Approved by:	portmgr (bapt)
Differential Revision:	https://reviews.freebsd.org/D22551
This commit is contained in:
Lars Engels 2019-12-08 10:19:38 +00:00
parent 35b6cb86f9
commit c86f12f75f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=519284

View File

@ -603,7 +603,9 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# test-depends-list
# - Show all directories which are test-dependencies
# for this port.
#
# install-missing-packages
# - Install missing dependencies from package and mark
# them as automatically installed
# extract - Unpacks ${DISTFILES} into ${WRKDIR}.
# patch - Apply any provided patches to the source.
# configure - Runs either GNU configure, one or more local configure
@ -4319,6 +4321,11 @@ missing-packages:
fi; \
done
# Install missing dependencies from package
install-missing-packages:
@_dirs=$$(${MISSING-DEPENDS-LIST}); \
${PKG_BIN} install -A $$(${ECHO} $${_dirs} | ${SED} "s%${PORTSDIR}/%%g")
################################################################
# Everything after here are internal targets and really
# shouldn't be touched by anybody but the release engineers.