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) | # Valid ARGS: (none), phpize, ext, zend, build, cli, cgi, mod, web, embed | ||||
# | # | ||||
# - phpize : Use to build a PHP extension. | |||||
# - ext : Use to build, install and register a PHP extension. | |||||
# - zend : Use to build, install and register a Zend extension. | |||||
# - build : Set PHP also as a build dependency. | |||||
# - cli : Want the CLI version of PHP. | |||||
# - cgi : Want the CGI version of PHP. | |||||
# - mod : Want the Apache Module for PHP. | |||||
# - web : Want the Apache Module or the CGI version of PHP. | |||||
# - embed : Want the embedded library version of PHP. | |||||
# | |||||
# 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 | ||||
# | # | ||||
# The port can set these options in its Makefile before bsd.port.pre.mk: | # The port can set these options in its Makefile before bsd.port.pre.mk: | ||||
# | # | ||||
# DEFAULT_PHP_VER=N - Use PHP version N if PHP is not yet installed. | # DEFAULT_PHP_VER=N - Use PHP version N if PHP is not yet installed. | ||||
# IGNORE_WITH_PHP=N - The port doesn't work with PHP version N. | # IGNORE_WITH_PHP=N - The port doesn't work with PHP version N. | ||||
# USE_PHPIZE=yes - Use to build a PHP extension. | |||||
# USE_PHPEXT=yes - Use to build, install and register a PHP extension. | |||||
# USE_ZENDEXT=yes - Use to build, install and register a Zend extension. | |||||
# USE_PHP_BUILD=yes - Set PHP also as a build dependency. | |||||
# WANT_PHP_CLI=yes - Want the CLI version of PHP. | |||||
# WANT_PHP_CGI=yes - Want the CGI version of PHP. | |||||
# WANT_PHP_MOD=yes - Want the Apache Module for PHP. | |||||
# WANT_PHP_WEB=yes - Want the Apache Module or the CGI version of PHP. | |||||
# WANT_PHP_EMB=yes - Want the embedded library version of PHP. | |||||
# | # | ||||
# You may combine multiple WANT_PHP_* knobs. | # You may combine multiple WANT_PHP_* knobs. | ||||
# Don't specify any WANT_PHP_* knob if your port will work with every PHP SAPI. | # Don't specify any WANT_PHP_* knob if your port will work with every PHP SAPI. | ||||
# | # | ||||
# 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 | ||||
.include "${PORTSDIR}/Mk/bsd.default-versions.mk" | .include "${PORTSDIR}/Mk/bsd.default-versions.mk" | ||||
. if defined(DEFAULT_PHP_VER) | . if defined(DEFAULT_PHP_VER) | ||||
WARNING+= "DEFAULT_PHP_VER is defined, consider using DEFAULT_VERSIONS=php=${DEFAULT_PHP_VER} instead" | WARNING+= "DEFAULT_PHP_VER is defined, consider using DEFAULT_VERSIONS=php=${DEFAULT_PHP_VER} instead" | ||||
. endif | . endif | ||||
. if defined(USE_PHPIZE) && empty(php_ARGS:Mphpize) | |||||
php_ARGS+= phpize | |||||
. endif | |||||
. if defined(USE_PHPEXT) && empty(php_ARGS:Mext) | |||||
php_ARGS+= ext | |||||
. endif | |||||
. if defined(USE_ZENDEXT) && empty(php_ARGS:Mzend) | |||||
php_ARGS+= zend | |||||
. endif | |||||
. if defined(USE_PHP_BUILD) && empty(php_ARGS:Mbuild) | |||||
php_ARGS+= build | |||||
. endif | |||||
. if defined(WANT_PHP_CLI) && empty(php_ARGS:Mcli) | |||||
php_ARGS+= cli | |||||
. endif | |||||
. if defined(WANT_PHP_CGI) && empty(php_ARGS:Mcgi) | |||||
php_ARGS+= cgi | |||||
. endif | |||||
. if defined(WANT_PHP_MOD) && empty(php_ARGS:Mmod) | |||||
php_ARGS+= mod | |||||
. endif | |||||
. if defined(WANT_PHP_WEB) && empty(php_ARGS:Mweb) | |||||
php_ARGS+= web | |||||
. endif | |||||
. if defined(WANT_PHP_EMB) && empty(php_ARGS:Membed) | |||||
php_ARGS+= embed | |||||
. 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" | |||||
. endif | |||||
. 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" | |||||
. endif | |||||
. if ${php_ARGS:Mext} && ${php_ARGS:Mzend} | |||||
DEV_WARNING+= "USES=php:ext is included in USES=php:zend, so it is not needed" | |||||
. 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 | ||||
. else | . else | ||||
DEFAULT_PHP_VER?= ${PHP_DEFAULT:S/.//} | DEFAULT_PHP_VER?= ${PHP_DEFAULT:S/.//} | ||||
Show All 39 Lines | |||||
. for VER in ${IGNORE_WITH_PHP} | . for VER in ${IGNORE_WITH_PHP} | ||||
. if ${PHP_VER} == "${VER}" | . if ${PHP_VER} == "${VER}" | ||||
IGNORE= cannot be installed: doesn't work with lang/php${PHP_VER} port\ | IGNORE= cannot be installed: doesn't work with lang/php${PHP_VER} port\ | ||||
(doesn't support PHP ${IGNORE_WITH_PHP:C/^5/5./}) | (doesn't support PHP ${IGNORE_WITH_PHP:C/^5/5./}) | ||||
. endif | . endif | ||||
. endfor | . endfor | ||||
. endif | . endif | ||||
. if defined(WANT_PHP_WEB) | . if ${php_ARGS:Mweb} | ||||
. if defined(WANT_PHP_CGI) || defined(WANT_PHP_MOD) | . if ${php_ARGS:Mcgi} || ${php_ARGS:Mmod} | ||||
check-makevars:: | check-makevars:: | ||||
@${ECHO_CMD} "If you define WANT_PHP_WEB you cannot set also WANT_PHP_CGI" | @${ECHO_CMD} "If you use :web you cannot also use :cgi" | ||||
@${ECHO_CMD} "or WANT_PHP_MOD. Use only one of them." | @${ECHO_CMD} "or :mod. Use only one of them." | ||||
@${FALSE} | @${FALSE} | ||||
. endif | . endif | ||||
. endif | . endif | ||||
. if defined(WANT_PHP_CGI) | . if ${php_ARGS:Mcgi} | ||||
. if defined(PHP_VERSION) && ${PHP_SAPI:Mcgi} == "" && ${PHP_SAPI:Mfpm} == "" | . if defined(PHP_VERSION) && ${PHP_SAPI:Mcgi} == "" && ${PHP_SAPI:Mfpm} == "" | ||||
check-makevars:: | check-makevars:: | ||||
@${ECHO_CMD} "This port requires the CGI version of PHP, but you have already" | @${ECHO_CMD} "This port requires the CGI version of PHP, but you have already" | ||||
@${ECHO_CMD} "installed a PHP port without CGI." | @${ECHO_CMD} "installed a PHP port without CGI." | ||||
@${FALSE} | @${FALSE} | ||||
. endif | . endif | ||||
. endif | . endif | ||||
. if defined(WANT_PHP_CLI) | . if ${php_ARGS:Mcli} | ||||
. if defined(PHP_VERSION) && ${PHP_SAPI:Mcli} == "" | . if defined(PHP_VERSION) && ${PHP_SAPI:Mcli} == "" | ||||
check-makevars:: | check-makevars:: | ||||
@${ECHO_CMD} "This port requires the CLI version of PHP, but you have already" | @${ECHO_CMD} "This port requires the CLI version of PHP, but you have already" | ||||
@${ECHO_CMD} "installed a PHP port without CLI." | @${ECHO_CMD} "installed a PHP port without CLI." | ||||
@${FALSE} | @${FALSE} | ||||
. endif | . endif | ||||
. endif | . endif | ||||
. if defined(WANT_PHP_EMB) | . if ${php_ARGS:Membed} | ||||
. if defined(PHP_VERSION) && ${PHP_SAPI:Membed} == "" | . if defined(PHP_VERSION) && ${PHP_SAPI:Membed} == "" | ||||
check-makevars:: | check-makevars:: | ||||
@${ECHO_CMD} "This port requires the embedded library version of PHP, but you have already" | @${ECHO_CMD} "This port requires the embedded library version of PHP, but you have already" | ||||
@${ECHO_CMD} "installed a PHP port without the embedded library." | @${ECHO_CMD} "installed a PHP port without the embedded library." | ||||
@${FALSE} | @${FALSE} | ||||
. endif | . endif | ||||
. endif | . endif | ||||
PHP_PORT?= lang/php${PHP_VER} | PHP_PORT?= lang/php${PHP_VER} | ||||
MOD_PHP_PORT?= www/mod_php${PHP_VER} | MOD_PHP_PORT?= www/mod_php${PHP_VER} | ||||
. if defined(USE_PHP_BUILD) | . if ${php_ARGS:Mbuild} | ||||
BUILD_DEPENDS+= ${PHPBASE}/include/php/main/php.h:${PHP_PORT} | BUILD_DEPENDS+= ${PHPBASE}/include/php/main/php.h:${PHP_PORT} | ||||
. endif | . endif | ||||
RUN_DEPENDS+= ${PHPBASE}/include/php/main/php.h:${PHP_PORT} | RUN_DEPENDS+= ${PHPBASE}/include/php/main/php.h:${PHP_PORT} | ||||
. if defined(WANT_PHP_MOD) || (defined(WANT_PHP_WEB) && defined(PHP_VERSION) && ${PHP_SAPI:Mcgi} == "" && ${PHP_SAPI:Mfpm} == "") | . if ${php_ARGS:Mmod} || (${php_ARGS:Mweb} && defined(PHP_VERSION) && ${PHP_SAPI:Mcgi} == "" && ${PHP_SAPI:Mfpm} == "") | ||||
USE_APACHE_RUN= 22+ | USE_APACHE_RUN= 22+ | ||||
.include "${PORTSDIR}/Mk/bsd.apache.mk" | .include "${PORTSDIR}/Mk/bsd.apache.mk" | ||||
RUN_DEPENDS+= ${PHPBASE}/${APACHEMODDIR}/libphp5.so:${MOD_PHP_PORT} | RUN_DEPENDS+= ${PHPBASE}/${APACHEMODDIR}/libphp5.so:${MOD_PHP_PORT} | ||||
. endif | . endif | ||||
PLIST_SUB+= PHP_EXT_DIR=${PHP_EXT_DIR} | PLIST_SUB+= PHP_EXT_DIR=${PHP_EXT_DIR} | ||||
SUB_LIST+= PHP_EXT_DIR=${PHP_EXT_DIR} | SUB_LIST+= PHP_EXT_DIR=${PHP_EXT_DIR} | ||||
. if defined(USE_PHPIZE) || defined(USE_PHPEXT) || defined(USE_ZENDEXT) | . if ${php_ARGS:Mphpize} || ${php_ARGS:Mext} || ${php_ARGS:Mzend} | ||||
BUILD_DEPENDS+= ${PHPBASE}/bin/phpize:${PHP_PORT} | BUILD_DEPENDS+= ${PHPBASE}/bin/phpize:${PHP_PORT} | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
USE_AUTOTOOLS+= autoconf:env | USE_AUTOTOOLS+= autoconf:env | ||||
CONFIGURE_ARGS+=--with-php-config=${PHPBASE}/bin/php-config | CONFIGURE_ARGS+=--with-php-config=${PHPBASE}/bin/php-config | ||||
configure-message: phpize-message do-phpize | configure-message: phpize-message do-phpize | ||||
phpize-message: | phpize-message: | ||||
@${ECHO_MSG} "===> PHPizing for ${PKGNAME}" | @${ECHO_MSG} "===> PHPizing for ${PKGNAME}" | ||||
do-phpize: | do-phpize: | ||||
@(cd ${WRKSRC}; ${SETENV} ${SCRIPTS_ENV} ${PHPBASE}/bin/phpize) | @(cd ${WRKSRC}; ${SETENV} ${SCRIPTS_ENV} ${PHPBASE}/bin/phpize) | ||||
. endif | . endif | ||||
_USES_POST+=php | _USES_POST+=php | ||||
.endif | .endif | ||||
.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_PHP_POST_MK) | .if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_PHP_POST_MK) | ||||
_INCLUDE_USES_PHP_POST_MK=yes | _INCLUDE_USES_PHP_POST_MK=yes | ||||
. if (defined(USE_PHPEXT) || defined(USE_ZENDEXT)) | . if ${php_ARGS:Mext} || ${php_ARGS:Mzend} | ||||
PHP_MODNAME?= ${PORTNAME} | PHP_MODNAME?= ${PORTNAME} | ||||
PHP_HEADER_DIRS?= "" | PHP_HEADER_DIRS?= "" | ||||
do-install: | do-install: | ||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR} | @${MKDIR} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR} | ||||
@${INSTALL_LIB} ${WRKSRC}/modules/${PHP_MODNAME}.so \ | @${INSTALL_LIB} ${WRKSRC}/modules/${PHP_MODNAME}.so \ | ||||
${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR} | ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR} | ||||
. for header in . ${PHP_HEADER_DIRS} | . for header in . ${PHP_HEADER_DIRS} | ||||
Show All 17 Lines | add-plist-phpext: | ||||
@${ECHO_CMD} "@unexec cp %D/include/php/ext/php_config.h %D/include/php/ext/php_config.h.orig" \ | @${ECHO_CMD} "@unexec cp %D/include/php/ext/php_config.h %D/include/php/ext/php_config.h.orig" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
@${ECHO_CMD} "@unexec grep -v ext/${PHP_MODNAME}/config.h %D/include/php/ext/php_config.h.orig > %D/include/php/ext/php_config.h || true" \ | @${ECHO_CMD} "@unexec grep -v ext/${PHP_MODNAME}/config.h %D/include/php/ext/php_config.h.orig > %D/include/php/ext/php_config.h || true" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
@${ECHO_CMD} "@unexec rm %D/include/php/ext/php_config.h.orig" \ | @${ECHO_CMD} "@unexec rm %D/include/php/ext/php_config.h.orig" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
@${ECHO_CMD} "@dir etc/php" \ | @${ECHO_CMD} "@dir etc/php" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
. if defined(USE_ZENDEXT) | . if ${php_ARGS:Mzend} | ||||
@${ECHO_CMD} "@exec echo zend_extension=%D/lib/php/${PHP_EXT_DIR}/${PHP_MODNAME}.so >> %D/etc/php/extensions.ini" \ | @${ECHO_CMD} "@exec echo zend_extension=%D/lib/php/${PHP_EXT_DIR}/${PHP_MODNAME}.so >> %D/etc/php/extensions.ini" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
. else | . else | ||||
@${ECHO_CMD} "@exec echo extension=${PHP_MODNAME}.so >> %D/etc/php/extensions.ini" \ | @${ECHO_CMD} "@exec echo extension=${PHP_MODNAME}.so >> %D/etc/php/extensions.ini" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
. endif | . endif | ||||
@${ECHO_CMD} "@unexec cp %D/etc/php/extensions.ini %D/etc/php/extensions.ini.orig" \ | @${ECHO_CMD} "@unexec cp %D/etc/php/extensions.ini %D/etc/php/extensions.ini.orig" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
. if defined(USE_ZENDEXT) | . if ${php_ARGS:Mzend} | ||||
@${ECHO_CMD} "@unexec grep -v zend_extension=%D/lib/php/${PHP_EXT_DIR}/${PHP_MODNAME}\\\.so %D/etc/php/extensions.ini.orig > %D/etc/php/extensions.ini || true" \ | @${ECHO_CMD} "@unexec grep -v zend_extension=%D/lib/php/${PHP_EXT_DIR}/${PHP_MODNAME}\\\.so %D/etc/php/extensions.ini.orig > %D/etc/php/extensions.ini || true" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
. else | . else | ||||
@${ECHO_CMD} "@unexec grep -v extension=${PHP_MODNAME}\\\.so %D/etc/php/extensions.ini.orig > %D/etc/php/extensions.ini || true" \ | @${ECHO_CMD} "@unexec grep -v extension=${PHP_MODNAME}\\\.so %D/etc/php/extensions.ini.orig > %D/etc/php/extensions.ini || true" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
. endif | . endif | ||||
@${ECHO_CMD} "@unexec rm %D/etc/php/extensions.ini.orig" \ | @${ECHO_CMD} "@unexec rm %D/etc/php/extensions.ini.orig" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
@${ECHO_CMD} "@unexec [ -s %D/etc/php/extensions.ini ] || rm %D/etc/php/extensions.ini" \ | @${ECHO_CMD} "@unexec [ -s %D/etc/php/extensions.ini ] || rm %D/etc/php/extensions.ini" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
package-message: php-ini | package-message: php-ini | ||||
php-ini: | php-ini: | ||||
@${ECHO_CMD} "****************************************************************************" | @${ECHO_CMD} "****************************************************************************" | ||||
@${ECHO_CMD} "" | @${ECHO_CMD} "" | ||||
@${ECHO_CMD} "The following line has been added to your ${PREFIX}/etc/php/extensions.ini" | @${ECHO_CMD} "The following line has been added to your ${PREFIX}/etc/php/extensions.ini" | ||||
@${ECHO_CMD} "configuration file to automatically load the installed extension:" | @${ECHO_CMD} "configuration file to automatically load the installed extension:" | ||||
@${ECHO_CMD} "" | @${ECHO_CMD} "" | ||||
. if defined(USE_ZENDEXT) | . if ${php_ARGS:Mzend} | ||||
@${ECHO_CMD} "zend_extension=${PREFIX}/lib/php/${PHP_EXT_DIR}/${PHP_MODNAME}.so" | @${ECHO_CMD} "zend_extension=${PREFIX}/lib/php/${PHP_EXT_DIR}/${PHP_MODNAME}.so" | ||||
. else | . else | ||||
@${ECHO_CMD} "extension=${PHP_MODNAME}.so" | @${ECHO_CMD} "extension=${PHP_MODNAME}.so" | ||||
. endif | . endif | ||||
@${ECHO_CMD} "" | @${ECHO_CMD} "" | ||||
@${ECHO_CMD} "****************************************************************************" | @${ECHO_CMD} "****************************************************************************" | ||||
. endif | . endif | ||||
# Extensions | # Extensions | ||||
. if ${USE_PHP:tl} != "yes" | . if defined(USE_PHP) && ${USE_PHP:tl} != "yes" | ||||
# non-version specific components | # non-version specific components | ||||
_USE_PHP_ALL= apc bcmath bitset bz2 calendar ctype curl dba dom \ | _USE_PHP_ALL= apc bcmath bitset bz2 calendar ctype curl dba dom \ | ||||
exif fileinfo filter ftp gd gettext gmp \ | exif fileinfo filter ftp gd gettext gmp \ | ||||
hash iconv igbinary imap interbase intl json ldap mbstring mcrypt \ | hash iconv igbinary imap interbase intl json ldap mbstring mcrypt \ | ||||
memcache mysqli odbc opcache \ | memcache mysqli odbc opcache \ | ||||
openssl pcntl pcre pdf pdo pdo_dblib pdo_firebird pdo_mysql \ | openssl pcntl pcre pdf pdo pdo_dblib pdo_firebird pdo_mysql \ | ||||
pdo_odbc pdo_pgsql pdo_sqlite phar pgsql posix \ | pdo_odbc pdo_pgsql pdo_sqlite phar pgsql posix \ | ||||
pspell radius readline recode session shmop simplexml snmp soap\ | pspell radius readline recode session shmop simplexml snmp soap\ | ||||
Show All 35 Lines | |||||
. else | . else | ||||
intl_DEPENDS= devel/pecl-intl | intl_DEPENDS= devel/pecl-intl | ||||
. endif | . endif | ||||
json_DEPENDS= devel/php${PHP_VER}-json | json_DEPENDS= devel/php${PHP_VER}-json | ||||
ldap_DEPENDS= net/php${PHP_VER}-ldap | ldap_DEPENDS= net/php${PHP_VER}-ldap | ||||
mbstring_DEPENDS= converters/php${PHP_VER}-mbstring | mbstring_DEPENDS= converters/php${PHP_VER}-mbstring | ||||
mcrypt_DEPENDS= security/php${PHP_VER}-mcrypt | mcrypt_DEPENDS= security/php${PHP_VER}-mcrypt | ||||
memcache_DEPENDS= databases/pecl-memcache | memcache_DEPENDS= databases/pecl-memcache | ||||
mhash_DEPENDS= security/php${PHP_VER}-mhash | |||||
mssql_DEPENDS= databases/php${PHP_VER}-mssql | mssql_DEPENDS= databases/php${PHP_VER}-mssql | ||||
mysql_DEPENDS= databases/php${PHP_VER}-mysql | mysql_DEPENDS= databases/php${PHP_VER}-mysql | ||||
mysqli_DEPENDS= databases/php${PHP_VER}-mysqli | mysqli_DEPENDS= databases/php${PHP_VER}-mysqli | ||||
ncurses_DEPENDS=devel/php${PHP_VER}-ncurses | ncurses_DEPENDS=devel/php${PHP_VER}-ncurses | ||||
odbc_DEPENDS= databases/php${PHP_VER}-odbc | odbc_DEPENDS= databases/php${PHP_VER}-odbc | ||||
oci8_DEPENDS= databases/php${PHP_VER}-oci8 | oci8_DEPENDS= databases/php${PHP_VER}-oci8 | ||||
opcache_DEPENDS= www/php${PHP_VER}-opcache | opcache_DEPENDS= www/php${PHP_VER}-opcache | ||||
openssl_DEPENDS=security/php${PHP_VER}-openssl | openssl_DEPENDS=security/php${PHP_VER}-openssl | ||||
Show All 35 Lines | |||||
xmlwriter_DEPENDS= textproc/php${PHP_VER}-xmlwriter | xmlwriter_DEPENDS= textproc/php${PHP_VER}-xmlwriter | ||||
xsl_DEPENDS= textproc/php${PHP_VER}-xsl | xsl_DEPENDS= textproc/php${PHP_VER}-xsl | ||||
zip_DEPENDS= archivers/php${PHP_VER}-zip | zip_DEPENDS= archivers/php${PHP_VER}-zip | ||||
zlib_DEPENDS= archivers/php${PHP_VER}-zlib | zlib_DEPENDS= archivers/php${PHP_VER}-zlib | ||||
. for extension in ${USE_PHP} | . for extension in ${USE_PHP} | ||||
. if ${_USE_PHP_VER${PHP_VER}:M${extension}} != "" | . if ${_USE_PHP_VER${PHP_VER}:M${extension}} != "" | ||||
. if ${PHP_EXT_INC:M${extension}} == "" | . if ${PHP_EXT_INC:M${extension}} == "" | ||||
. if defined(USE_PHP_BUILD) | . if ${php_ARGS:Mbuild} | ||||
BUILD_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/${extension}.so:${${extension}_DEPENDS} | BUILD_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/${extension}.so:${${extension}_DEPENDS} | ||||
. endif | . endif | ||||
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/${extension}.so:${${extension}_DEPENDS} | RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/${extension}.so:${${extension}_DEPENDS} | ||||
. endif | . endif | ||||
. else | . else | ||||
ext= ${extension} | ext= ${extension} | ||||
. if ${ext} == "mhash" | . if ${ext:tl} != "yes" | ||||
. if defined(USE_PHP_BUILD) | |||||
BUILD_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/hash.so:${hash_DEPENDS} | |||||
. endif | |||||
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/hash.so:${hash_DEPENDS} | |||||
. elif ${ext:tl} != "yes" | |||||
check-makevars:: | check-makevars:: | ||||
@${ECHO_CMD} "Unknown extension ${extension} for PHP ${PHP_VER}." | @${ECHO_CMD} "Unknown extension ${extension} for PHP ${PHP_VER}." | ||||
@${FALSE} | @${FALSE} | ||||
. endif | . endif | ||||
. endif | . endif | ||||
. endfor | . endfor | ||||
. endif | . endif | ||||
.endif | .endif |