aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-04-23 01:01:33 +0800
committerbapt <bapt@FreeBSD.org>2013-04-23 01:01:33 +0800
commita914b6369255dc18cfffc203d299cdae92aa1a4f (patch)
treed11a9e0c2f58e9661e9e8bfcb5a7ca5dd513ed73 /Mk/bsd.port.mk
parenta2e5cc367fefea1f631350fe4889c069382fab85 (diff)
downloadfreebsd-ports-a914b6369255dc18cfffc203d299cdae92aa1a4f.tar.gz
freebsd-ports-a914b6369255dc18cfffc203d299cdae92aa1a4f.tar.zst
freebsd-ports-a914b6369255dc18cfffc203d299cdae92aa1a4f.zip
Use simple glob matching instead of a regex to test if PREFIX defined as an absolute patch
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 3a01fa176819..523290045460 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1525,7 +1525,7 @@ ${_f}_ARGS:= ${f:C/^[^\:]*\://g}
# You can force skipping these test by defining IGNORE_PATH_CHECKS
.if !defined(IGNORE_PATH_CHECKS)
-.if (${PREFIX:C,(^.).*,\1,} != "/")
+.if ! ${PREFIX:M/*}
.BEGIN:
@${ECHO_MSG} "PREFIX must be defined as an absolute path so that when 'make'"
@${ECHO_MSG} "is invoked in the work area PREFIX points to the right place."