Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/php.mk
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# Support for PHP-based ports. | # Support for PHP-based ports. | ||||
# | # | ||||
# Feature: php | # Feature: php | ||||
# Usage: USES=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. | # - phpize : Use to build a PHP extension. | ||||
# - ext : Use to build, install and register a PHP extension. | # - ext : Use to build, install and register a PHP extension. | ||||
# - zend : Use to build, install and register a Zend extension. | # - zend : Use to build, install and register a Zend extension. | ||||
# - build : Set PHP also as a build dependency. | # - build : Set PHP also as a build dependency. | ||||
# - cli : Want the CLI version of PHP. | # - cli : Want the CLI version of PHP. | ||||
# - cgi : Want the CGI version of PHP. | # - cgi : Want the CGI version of PHP. | ||||
# - mod : Want the Apache Module for PHP. | # - mod : Want the Apache Module for PHP. | ||||
Show All 38 Lines | |||||
# If you are building PHP-based ports in poudriere(8) with ZTS enabled, | # If you are building PHP-based ports in poudriere(8) with ZTS enabled, | ||||
# add WITH_MPM=event to /etc/make.conf to prevent build failures. | # add WITH_MPM=event to /etc/make.conf to prevent build failures. | ||||
.if !defined(_INCLUDE_USES_PHP_MK) | .if !defined(_INCLUDE_USES_PHP_MK) | ||||
PHP_Include_MAINTAINER= ale@FreeBSD.org | PHP_Include_MAINTAINER= ale@FreeBSD.org | ||||
_INCLUDE_USES_PHP_MK= yes | _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} ) | . 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" | DEV_WARNING+= "USES=php:build is included in USES=php:phpize, USES=php:ext, and USES=php:zend, so it is not needed" | ||||
. endif | . endif | ||||
. if ${php_ARGS:Mflavors} && ( ${php_ARGS:Mphpize} || ${php_ARGS:Mext} || ${php_ARGS:Mzend} || ${php_ARGS:Mpecl} ) | . if ${php_ARGS:Mflavors} && ( ${php_ARGS:Mphpize} || ${php_ARGS:Mext} || ${php_ARGS:Mzend} || ${php_ARGS:Mpecl} ) | ||||
DEV_WARNING+= "USES=php:flavors is included in phpize, ext, zend and pecl, so it is not needed." | DEV_WARNING+= "USES=php:flavors is included in phpize, ext, zend and pecl, so it is not needed." | ||||
. endif | . endif | ||||
. if ${php_ARGS:Mphpize} && ( ${php_ARGS:Mext} || ${php_ARGS:Mzend} ) | . if ${php_ARGS:Mphpize} && ( ${php_ARGS:Mext} || ${php_ARGS:Mzend} ) | ||||
▲ Show 20 Lines • Show All 385 Lines • Show Last 20 Lines |