diff options
author | bapt <bapt@FreeBSD.org> | 2013-04-23 01:01:33 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-04-23 01:01:33 +0800 |
commit | a914b6369255dc18cfffc203d299cdae92aa1a4f (patch) | |
tree | d11a9e0c2f58e9661e9e8bfcb5a7ca5dd513ed73 /Mk | |
parent | a2e5cc367fefea1f631350fe4889c069382fab85 (diff) | |
download | freebsd-ports-gnome-a914b6369255dc18cfffc203d299cdae92aa1a4f.tar.gz freebsd-ports-gnome-a914b6369255dc18cfffc203d299cdae92aa1a4f.tar.zst freebsd-ports-gnome-a914b6369255dc18cfffc203d299cdae92aa1a4f.zip |
Use simple glob matching instead of a regex to test if PREFIX defined as an absolute patch
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 2 |
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." |