svn commit: r399015 - head/Mk

Baptiste Daroussin bapt at FreeBSD.org
Sat Oct 10 19:53:37 UTC 2015


Author: bapt
Date: Sat Oct 10 19:53:36 2015
New Revision: 399015
URL: https://svnweb.freebsd.org/changeset/ports/399015

Log:
  Check if the port directory is aboslute otherwise prepend ${PORTSDIR} in FETCH_LIST
  
  It allows dependencies to be defined without ${PORTSDIR}

Modified:
  head/Mk/bsd.port.mk

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Sat Oct 10 19:51:12 2015	(r399014)
+++ head/Mk/bsd.port.mk	Sat Oct 10 19:53:36 2015	(r399015)
@@ -4439,6 +4439,10 @@ fetch-recursive-list:
 #	-mi
 FETCH_LIST?=	for i in $$deps; do \
 		prog=$${i%%:*}; dir=$${i\#*:}; \
+		case $$dir in \
+		/*) ;; \
+		*) dir=${PORTSDIR}/$$dir ;; \
+		esac; \
 		case $$dir in	\
 		*:*) if [ $$prog != $${prog\#/} -o ! -e $$prog ]; then	\
 				dir=$${dir%%:*};	\


More information about the svn-ports-all mailing list