aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2007-03-06 06:58:35 +0000
committerMark Linimon <linimon@FreeBSD.org>2007-03-06 06:58:35 +0000
commite3907bef8b685fdebaaecdec6c7cf55cdf638cfe (patch)
treee4592d2e0d47974ff1e480560e5fc99d105a6e92 /Mk
parentbe4c6448a890a12891a93bbc158a66ec4e868e79 (diff)
downloadports-e3907bef8b685fdebaaecdec6c7cf55cdf638cfe.tar.gz
ports-e3907bef8b685fdebaaecdec6c7cf55cdf638cfe.zip
* Fix 'make search' with non-default ${PORTSDIR}
PR: ports/105917 Submitted by: shaun
Notes
Notes: svn path=/head/; revision=186642
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.subdir.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mk/bsd.port.subdir.mk b/Mk/bsd.port.subdir.mk
index 54b58cf7da67..c433ff119cf4 100644
--- a/Mk/bsd.port.subdir.mk
+++ b/Mk/bsd.port.subdir.mk
@@ -416,6 +416,8 @@ _PORTSEARCH= \
} \
} \
{ \
+ if (match($$2, "^/usr/ports/[^/]*/[^/]*$$") > 0) \
+ sub("^/usr/ports", "${PORTSDIR}", $$2); \
if (substr($$2, 1, therelen) != there) \
next; \
for (i in parms) \