Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/php.mk
Show All 9 Lines | |||||
# - 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. | ||||
# - web : Want the Apache Module or the CGI version of PHP. | # - web : Want the Apache Module or the CGI version of PHP. | ||||
# - embed : Want the embedded library version of PHP. | # - embed : Want the embedded library version of PHP. | ||||
# - pecl : Fetches from PECL. | |||||
# | # | ||||
# If the port requires a predefined set of PHP extensions, they can be | # If the port requires a predefined set of PHP extensions, they can be | ||||
# listed in this way: | # listed in this way: | ||||
# | # | ||||
# USE_PHP= ext1 ext2 ext3 | # USE_PHP= ext1 ext2 ext3 | ||||
# | # | ||||
# PHP and Zend extensions built with :ext and :zend are automatically enabled | # PHP and Zend extensions built with :ext and :zend are automatically enabled | ||||
# when the port is installed. Each port creates a PHP_EXT_INI_FILE file and | # when the port is installed. Each port creates a PHP_EXT_INI_FILE file and | ||||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
. 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:Mphpize} && ( ${php_ARGS:Mext} || ${php_ARGS:Mzend} ) | . if ${php_ARGS:Mphpize} && ( ${php_ARGS:Mext} || ${php_ARGS:Mzend} ) | ||||
DEV_WARNING+= "USES=php:phpize is included in USES=php:ext and USES=php:zend, so it is not needed" | DEV_WARNING+= "USES=php:phpize is included in USES=php:ext and USES=php:zend, so it is not needed" | ||||
. endif | . endif | ||||
. if ${php_ARGS:Mext} && ${php_ARGS:Mzend} | . if ${php_ARGS:Mext} && ${php_ARGS:Mzend} | ||||
DEV_WARNING+= "USES=php:ext is included in USES=php:zend, so it is not needed" | DEV_WARNING+= "USES=php:ext is included in USES=php:zend, so it is not needed" | ||||
. endif | |||||
. if ${php_ARGS:Mext} && ${php_ARGS:Mpecl} | |||||
DEV_WARNING+= "USES=php:ext is included in USES=php:pecl, so it is not needed" | |||||
. endif | |||||
. if ${php_ARGS:Mpecl} | |||||
php_ARGS+= ext | |||||
EXTRACT_SUFX?= .tgz | |||||
MASTER_SITES?= http://pecl.php.net/get/ | |||||
PKGNAMEPREFIX?= pecl- | |||||
DIST_SUBDIR?= PECL | |||||
. endif | . endif | ||||
PHPBASE?= ${LOCALBASE} | PHPBASE?= ${LOCALBASE} | ||||
. if exists(${PHPBASE}/etc/php.conf) | . if exists(${PHPBASE}/etc/php.conf) | ||||
.include "${PHPBASE}/etc/php.conf" | .include "${PHPBASE}/etc/php.conf" | ||||
. if !defined(PHP_EXT_DIR) | . if !defined(PHP_EXT_DIR) | ||||
PHP_EXT_DIR!= ${PHPBASE}/bin/php-config --extension-dir | ${SED} -ne 's,^${PHPBASE}/lib/php/\(.*\),\1,p' | PHP_EXT_DIR!= ${PHPBASE}/bin/php-config --extension-dir | ${SED} -ne 's,^${PHPBASE}/lib/php/\(.*\),\1,p' | ||||
. endif | . endif | ||||
▲ Show 20 Lines • Show All 321 Lines • Show Last 20 Lines |