Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153726418
D19750.id55591.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D19750.id55591.diff
View Options
Index: Mk/Uses/php.mk
===================================================================
--- Mk/Uses/php.mk
+++ Mk/Uses/php.mk
@@ -4,7 +4,7 @@
#
# Feature: php
# Usage: USES=php
-# Valid ARGS: (none), phpize, ext, zend, build, cli, cgi, mod, web, embed
+# Valid ARGS: (none), or one of
#
# - phpize : Use to build a PHP extension.
# - ext : Use to build, install and register a PHP extension.
@@ -59,6 +59,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"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 24, 6:21 AM (6 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32063462
Default Alt Text
D19750.id55591.diff (1 KB)
Attached To
Mode
D19750: Mk/Uses/php.mk: Flag invalid args
Attached
Detach File
Event Timeline
Log In to Comment