Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 2019 10:19:38 +0000 (UTC)
From:      Lars Engels <lme@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r519284 - head/Mk
Message-ID:  <201912081019.xB8AJc4D022130@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lme
Date: Sun Dec  8 10:19:38 2019
New Revision: 519284
URL: https://svnweb.freebsd.org/changeset/ports/519284

Log:
  Add new Makefile target "install-missing-packages" to install missing dependencies from packages.
  
  Approved by:	portmgr (bapt)
  Differential Revision:	https://reviews.freebsd.org/D22551

Modified:
  head/Mk/bsd.port.mk

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Sun Dec  8 10:05:44 2019	(r519283)
+++ head/Mk/bsd.port.mk	Sun Dec  8 10:19:38 2019	(r519284)
@@ -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
@@ -4318,6 +4320,11 @@ missing-packages:
 			${ECHO_CMD} $${_p}; \
 		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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912081019.xB8AJc4D022130>