Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Mar 2019 18:36:30 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r497318 - head/Mk/Uses
Message-ID:  <201903301836.x2UIaUBm059900@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sat Mar 30 18:36:30 2019
New Revision: 497318
URL: https://svnweb.freebsd.org/changeset/ports/497318

Log:
  Mk/Uses/php.mk: Flag invalid args
  
  Approved by:	ale (maintainer)
  Differential Revision:	https://reviews.freebsd.org/D19750

Modified:
  head/Mk/Uses/php.mk

Modified: head/Mk/Uses/php.mk
==============================================================================
--- head/Mk/Uses/php.mk	Sat Mar 30 18:34:00 2019	(r497317)
+++ head/Mk/Uses/php.mk	Sat Mar 30 18:36:30 2019	(r497318)
@@ -4,7 +4,8 @@
 #
 # Feature:	php
 # Usage:	USES=php
-# Valid ARGS:	(none), phpize, ext, zend, build, cli, cgi, mod, web, embed
+# Valid ARGS:	(none), phpize, ext, zend, build, cli, cgi, mod, web, embed,
+#		pecl, flavors, noflavors
 #
 #	- phpize   : Use to build a PHP extension.
 #	- ext      : Use to build, install and register a PHP extension.
@@ -59,6 +60,18 @@
 PHP_Include_MAINTAINER=	ale@FreeBSD.org
 
 _INCLUDE_USES_PHP_MK=	yes
+
+_PHP_VALID_ARGS=	build cgi cli embed ext flavors mod noflavors pecl \
+			phpize web zend
+_PHP_UNKNOWN_ARGS=
+.for arg in ${php_ARGS}
+.  if empty(_PHP_VALID_ARGS:M${arg})
+_PHP_UNKNOWN_ARGS+=	${arg}
+.  endif
+.endfor
+.if !empty(_PHP_UNKNOWN_ARGS)
+IGNORE=	has unknown USES=php arguments: ${_PHP_UNKNOWN_ARGS}
+.endif
 
 .  if ${php_ARGS:Mbuild} && ( ${php_ARGS:Mphpize} || ${php_ARGS:Mext} || ${php_ARGS:Mzend} )
 DEV_WARNING+=	"USES=php:build is included in USES=php:phpize, USES=php:ext, and USES=php:zend, so it is not needed"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903301836.x2UIaUBm059900>