aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2016-07-04 19:12:55 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2016-07-04 19:12:55 +0000
commit5fc4d6d4d49d3af299968385c9dd3644bde932a0 (patch)
treee597ad4947d55330c5bfdc0c6b840db96fa0ceef /Mk/bsd.port.mk
parent84f4a8e508aaf2d2202e8b941cf48b3532840749 (diff)
downloadports-5fc4d6d4d49d3af299968385c9dd3644bde932a0.tar.gz
ports-5fc4d6d4d49d3af299968385c9dd3644bde932a0.zip
Extend the USES=php match so that it recognizes php:web as well, to prevent
an erroneous deprecation warning. PR: 210822 Approved by: portmgr (mat)
Notes
Notes: svn path=/head/; revision=418050
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 9ce2fd5c902e..fd53c3b52f09 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1357,7 +1357,7 @@ USES+= ssl
.include "${PORTSDIR}/Mk/bsd.emacs.mk"
.endif
-.if defined(USE_PHP) && (!defined(USES) || ( defined(USES) && !${USES:Mphp} ))
+.if defined(USE_PHP) && (!defined(USES) || ( defined(USES) && !${USES:Mphp*} ))
DEV_WARNING+= "Using USE_PHP alone is deprecated, please use USES=php"
USES+= php
.endif
@@ -1921,7 +1921,7 @@ _FORCE_POST_PATTERNS= rmdir kldxref mkfontscale mkfontdir fc-cache \
.include "${PORTSDIR}/Mk/bsd.sdl.mk"
.endif
-.if defined(USE_PHP) && (!defined(USES) || ( defined(USES) && !${USES:Mphp} ))
+.if defined(USE_PHP) && (!defined(USES) || ( defined(USES) && !${USES:Mphp*} ))
DEV_WARNING+= "Using USE_PHP alone is deprecated, please use USES=php"
_USES_POST+= php
.endif