summaryrefslogtreecommitdiff
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
parentUse the new facility of bsd.port.mk to be able to simplify the interaction (diff)
* Fix 'make search' with non-default ${PORTSDIR}
PR: ports/105917 Submitted by: shaun
Notes
Notes: svn path=/head/; revision=186642
-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) \