Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Oct 2015 19:53:36 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r399015 - head/Mk
Message-ID:  <201510101953.t9AJra94018804@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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%%:*};	\



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