Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/php.mk
Show All 10 Lines | |||||
# - 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. | # - pecl : Fetches from PECL. | ||||
# - flavors : Generates flavors for supported versions. | |||||
# (implied by phpize,ext,zend,pecl) | |||||
# - noflavors: Prevents generation of flavor. | |||||
# | # | ||||
# 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 All 11 Lines | |||||
# For example: | # For example: | ||||
# | # | ||||
# USES= php:ext | # USES= php:ext | ||||
# USE_PHP= xml wddx | # USE_PHP= xml wddx | ||||
# PHP_MOD_PRIO= 40 | # PHP_MOD_PRIO= 40 | ||||
# | # | ||||
# 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. | |||||
# 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. | ||||
# | # | ||||
# 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 | ||||
. if defined(DEFAULT_PHP_VER) | |||||
WARNING+= "DEFAULT_PHP_VER is defined, consider using DEFAULT_VERSIONS=php=${DEFAULT_PHP_VER} instead" | |||||
. endif | |||||
. if defined(USE_PHPIZE) && empty(php_ARGS:Mphpize) | . if defined(USE_PHPIZE) && empty(php_ARGS:Mphpize) | ||||
php_ARGS+= phpize | php_ARGS+= phpize | ||||
. endif | . endif | ||||
. if defined(WANT_PHP_CLI) && empty(php_ARGS:Mcli) | . if defined(WANT_PHP_CLI) && empty(php_ARGS:Mcli) | ||||
php_ARGS+= cli | php_ARGS+= cli | ||||
. endif | . endif | ||||
. if defined(WANT_PHP_CGI) && empty(php_ARGS:Mcgi) | . if defined(WANT_PHP_CGI) && empty(php_ARGS:Mcgi) | ||||
php_ARGS+= cgi | php_ARGS+= cgi | ||||
. endif | . endif | ||||
. if defined(WANT_PHP_MOD) && empty(php_ARGS:Mmod) | . if defined(WANT_PHP_MOD) && empty(php_ARGS:Mmod) | ||||
php_ARGS+= mod | php_ARGS+= mod | ||||
. endif | . endif | ||||
. if defined(WANT_PHP_WEB) && empty(php_ARGS:Mweb) | . if defined(WANT_PHP_WEB) && empty(php_ARGS:Mweb) | ||||
php_ARGS+= web | php_ARGS+= web | ||||
. endif | . endif | ||||
. if defined(WANT_PHP_EMB) && empty(php_ARGS:Membed) | . if defined(WANT_PHP_EMB) && empty(php_ARGS:Membed) | ||||
php_ARGS+= embed | php_ARGS+= embed | ||||
. endif | . 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} ) | |||||
DEV_WARNINGS+= "USES=php:flavors is included in phpize, ext, zend and pecl, so it is not needed." | |||||
. 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 | . endif | ||||
. if ${php_ARGS:Mext} && ${php_ARGS:Mpecl} | . if ${php_ARGS:Mext} && ${php_ARGS:Mpecl} | ||||
DEV_WARNING+= "USES=php:ext is included in USES=php:pecl, so it is not needed" | DEV_WARNING+= "USES=php:ext is included in USES=php:pecl, so it is not needed" | ||||
. endif | . endif | ||||
. if ( ${php_ARGS:Mphpize} || ${php_ARGS:Mext} || ${php_ARGS:Mzend} || ${php_ARGS:Mpecl} ) && !${php_ARGS:Mnoflavors} | |||||
php_ARGS+= flavors | |||||
. endif | |||||
. if ${php_ARGS:Mnoflavors} && ${php_ARGS:Mflavors} | |||||
php_ARGS:= ${php_ARGS:Nflavors} | |||||
. endif | |||||
. if ${php_ARGS:Mpecl} | . if ${php_ARGS:Mpecl} | ||||
php_ARGS+= ext | php_ARGS+= ext | ||||
. if !defined(USE_GITHUB) | |||||
EXTRACT_SUFX= .tgz | EXTRACT_SUFX= .tgz | ||||
MASTER_SITES= http://pecl.php.net/get/ | MASTER_SITES= http://pecl.php.net/get/ | ||||
PKGNAMEPREFIX= pecl- | . endif | ||||
PKGNAMEPREFIX= ${PECL_PKGNAMEPREFIX} | |||||
tz: I don't understand the new conditional. Why is it used here? | |||||
matAuthorUnsubmitted Done Inline ActionsBecause if a pecl port USE_GITHUB to fetch their distfile, they can still USES=php:pecl to get the right suffix and DIST_SUBDIR. mat: Because if a pecl port USE_GITHUB to fetch their distfile, they can still USES=php:pecl to get… | |||||
DIST_SUBDIR= PECL | DIST_SUBDIR= PECL | ||||
. endif | . endif | ||||
PHPBASE?= ${LOCALBASE} | PHPBASE?= ${LOCALBASE} | ||||
_ALL_PHP_VERSIONS= 56 70 71 72 | |||||
# Make the already installed PHP the default one. | |||||
. 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 | ||||
_INSTALLED_PHP_VER:= ${PHP_VER} | |||||
# If we have an installed version of PHP, and this does not support it, set | |||||
# IGNORE to fail early as you cannot install two different versions of PHP at | |||||
# the same time anyway. | |||||
. if defined(IGNORE_WITH_PHP) && ${IGNORE_WITH_PHP:M${_INSTALLED_PHP_VER}} | |||||
IGNORE= does not work with PHP versions "${IGNORE_WITH_PHP}" and "${_INSTALLED_PHP_VER}" is installed. | |||||
. endif | |||||
. else | . else | ||||
DEFAULT_PHP_VER?= ${PHP_DEFAULT:S/.//} | PHP_VER?= ${PHP_DEFAULT:S/.//} | ||||
. endif # .if exists(${PHPBASE}/etc/php.conf) | |||||
# Use the "default" php version as th first version for flavors, so that it | |||||
# gets to be the default flavor. | |||||
_ALL_FLAVOR_VERSIONS= ${PHP_VER} ${_ALL_PHP_VERSIONS:N${PHP_VER}} | |||||
# If we want flavors, fill in FLAVORS with the allowed PHP versions, if some | |||||
# cannot be used, or all of them if they all can. | |||||
# Then if there is no flavor set, use the first one as the default. | |||||
. if ${php_ARGS:Mflavors} | |||||
. if empty(FLAVORS) | |||||
. if defined(IGNORE_WITH_PHP) | |||||
. for _v in ${_ALL_FLAVOR_VERSIONS} | |||||
. if empty(IGNORE_WITH_PHP:M${_v}) | |||||
# Avoid a leading space in FLAVORS. | |||||
. if empty(FLAVORS) | |||||
FLAVORS:= php${_v} | |||||
. else | |||||
FLAVORS:= ${FLAVORS} php${_v} | |||||
. endif | |||||
. endif | |||||
. endfor | |||||
. else # defined(IGNORE_WITH_PHP) | |||||
FLAVORS:= ${_ALL_FLAVOR_VERSIONS:S/^/php/} | |||||
. endif # defined(IGNORE_WITH_PHP) | |||||
. endif | |||||
. if empty(FLAVOR) | |||||
FLAVOR= ${FLAVORS:[1]} | |||||
. endif | |||||
. endif | |||||
# This variable is for dependencies lines, so you write: | |||||
# ${PHP_PKGNAMEPREFIX}foo:devel/php-foo@${PHP_FLAVOR} | |||||
PHP_FLAVOR= php${PHP_VER} | |||||
# So, we have PHP flavors, set PHP_VER accordingly. | |||||
. if ${FLAVOR:Mphp[0-9][0-9]} | |||||
PHP_VER= ${FLAVOR:S/^php//} | |||||
. endif | |||||
# If lang/php is not installed, or if we have a php flavor but want a non | |||||
# default one, we need to overwrite those. | |||||
. if empty(PHP_EXT_DIR) || empty(PHP_EXT_INC) || \ | |||||
(${FLAVOR:Mphp[0-9][0-9]} && ${FLAVOR} != ${FLAVORS:[1]}) | |||||
# When adding a version, please keep the comment in | # When adding a version, please keep the comment in | ||||
# Mk/bsd.default-versions.mk in sync. | # Mk/bsd.default-versions.mk in sync. | ||||
PHP_VER?= ${DEFAULT_PHP_VER} | |||||
. if ${PHP_VER} == 72 | . if ${PHP_VER} == 72 | ||||
PHP_EXT_DIR= 20170718 | PHP_EXT_DIR= 20170718 | ||||
PHP_EXT_INC= pcre spl | PHP_EXT_INC= pcre spl | ||||
. elif ${PHP_VER} == 71 | . elif ${PHP_VER} == 71 | ||||
PHP_EXT_DIR= 20160303 | PHP_EXT_DIR= 20160303 | ||||
PHP_EXT_INC= pcre spl | PHP_EXT_INC= pcre spl | ||||
. elif ${PHP_VER} == 70 | . elif ${PHP_VER} == 70 | ||||
PHP_EXT_DIR= 20151012 | PHP_EXT_DIR= 20151012 | ||||
PHP_EXT_INC= pcre spl | PHP_EXT_INC= pcre spl | ||||
. elif ${PHP_VER} == 56 | . elif ${PHP_VER} == 56 | ||||
PHP_EXT_DIR= 20131226 | PHP_EXT_DIR= 20131226 | ||||
PHP_EXT_INC= pcre spl | PHP_EXT_INC= pcre spl | ||||
. else | . else | ||||
# (rene) default to DEFAULT_VERSIONS | # (rene) default to DEFAULT_VERSIONS | ||||
PHP_EXT_DIR= 20131226 | PHP_EXT_DIR= 20131226 | ||||
PHP_EXT_INC= pcre spl | PHP_EXT_INC= pcre spl | ||||
. endif | . endif | ||||
# Some dark magic to figure out what the PHP_EXT_DIR should be WRT the | |||||
# installed Apache port. | |||||
HTTPD?= ${LOCALBASE}/sbin/httpd | HTTPD?= ${LOCALBASE}/sbin/httpd | ||||
tzUnsubmitted Done Inline ActionsWhat is WRT? Also "dark magic" is not a helpful documentation tz: What is WRT? Also "dark magic" is not a helpful documentation | |||||
tzUnsubmitted Done Inline ActionsFor the log: i'm insisting that "dark magic" is not a helpful documentation at all. tz: For the log: i'm insisting that "dark magic" is not a helpful documentation at all. | |||||
. if exists(${HTTPD}) | . if exists(${HTTPD}) | ||||
APACHE_THR!= ${HTTPD} -V | ${AWK} '/threaded/ {print $2}' | APACHE_THR!= ${HTTPD} -V | ${AWK} '/threaded/ {print $2}' | ||||
. if ${APACHE_THR:Myes} | . if ${APACHE_THR:Myes} | ||||
PHP_EXT_DIR:= ${PHP_EXT_DIR}-zts | PHP_EXT_DIR:= ${PHP_EXT_DIR}-zts | ||||
. endif | . endif | ||||
. elif defined(APACHE_PORT) && (${APACHE_PORT:M*worker*} != "" || ${APACHE_PORT:M*event*} != "") | . elif defined(APACHE_PORT) && (${APACHE_PORT:M*worker*} != "" || ${APACHE_PORT:M*event*} != "") | ||||
PHP_EXT_DIR:= ${PHP_EXT_DIR}-zts | PHP_EXT_DIR:= ${PHP_EXT_DIR}-zts | ||||
. elif defined(WITH_MPM) && (${WITH_MPM} == "worker" || ${WITH_MPM} == "event") | . elif defined(WITH_MPM) && (${WITH_MPM} == "worker" || ${WITH_MPM} == "event") | ||||
PHP_EXT_DIR:= ${PHP_EXT_DIR}-zts | PHP_EXT_DIR:= ${PHP_EXT_DIR}-zts | ||||
. endif | . endif | ||||
. if defined(WITH_DEBUG) | . if defined(WITH_DEBUG) | ||||
PHP_EXT_DIR:= ${PHP_EXT_DIR}-debug | PHP_EXT_DIR:= ${PHP_EXT_DIR}-debug | ||||
. endif | . endif | ||||
PHP_SAPI?= "" | PHP_SAPI?= "" | ||||
. endif # .if exists(${PHPBASE}/etc/php.conf) | . endif # empty(PHP_EXT_DIR) || empty(PHP_EXT_INC) || (${FLAVOR:Mphp[0-9][0-9]} && ${FLAVOR} != ${FLAVORS:[1]}) | ||||
PHP_EXT_INC?= "" | |||||
# Set a few PKGNAME(PRE|SUF)FIX to be used in ports. | |||||
PHP_PKGNAMEPREFIX= php${PHP_VER}- | |||||
PHP_PKGNAMESUFFIX= -php${PHP_VER} | |||||
PECL_PKGNAMEPREFIX= php${PHP_VER}-pecl- | |||||
. if defined(IGNORE_WITH_PHP) | . if defined(IGNORE_WITH_PHP) | ||||
. for VER in ${IGNORE_WITH_PHP} | . for VER in ${IGNORE_WITH_PHP} | ||||
. if ${PHP_VER} == "${VER}" | . if ${PHP_VER} == "${VER}" | ||||
_IGNORE_PHP_SET= | _IGNORE_PHP_SET= | ||||
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/^([57])/\1./}) | (doesn't support PHP ${IGNORE_WITH_PHP:C/^([57])/\1./}) | ||||
. endif | . endif | ||||
. endfor | . endfor | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
SUB_LIST+= PHP_EXT_DIR=${PHP_EXT_DIR} | SUB_LIST+= PHP_EXT_DIR=${PHP_EXT_DIR} | ||||
. if ${php_ARGS:Mphpize} || ${php_ARGS:Mext} || ${php_ARGS:Mzend} | . if ${php_ARGS:Mphpize} || ${php_ARGS:Mext} || ${php_ARGS:Mzend} | ||||
BUILD_DEPENDS+= ${PHPBASE}/bin/phpize:${PHP_PORT} \ | BUILD_DEPENDS+= ${PHPBASE}/bin/phpize:${PHP_PORT} \ | ||||
autoconf>0:devel/autoconf | autoconf>0:devel/autoconf | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ARGS+=--with-php-config=${PHPBASE}/bin/php-config | CONFIGURE_ARGS+=--with-php-config=${PHPBASE}/bin/php-config | ||||
configure-message: phpize-message do-phpize | _USES_configure+= 190:phpize-message 250: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 | ||||
▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
# version specific components | # version specific components | ||||
_USE_PHP_VER56= ${_USE_PHP_ALL} mssql mysql sybase_ct | _USE_PHP_VER56= ${_USE_PHP_ALL} mssql mysql sybase_ct | ||||
_USE_PHP_VER70= ${_USE_PHP_ALL} | _USE_PHP_VER70= ${_USE_PHP_ALL} | ||||
_USE_PHP_VER71= ${_USE_PHP_ALL} | _USE_PHP_VER71= ${_USE_PHP_ALL} | ||||
_USE_PHP_VER72= ${_USE_PHP_ALL} sodium | _USE_PHP_VER72= ${_USE_PHP_ALL} sodium | ||||
bcmath_DEPENDS= math/php${PHP_VER}-bcmath | bcmath_DEPENDS= math/php${PHP_VER}-bcmath | ||||
. if ${PHP_VER} == 70 || ${PHP_VER} == 71 || ${PHP_VER} == 72 | . if ${PHP_VER} == 70 || ${PHP_VER} == 71 || ${PHP_VER} == 72 | ||||
bitset_DEPENDS= math/pecl-bitset | bitset_DEPENDS= math/pecl-bitset@${PHP_FLAVOR} | ||||
. else | . else | ||||
bitset_DEPENDS= math/pecl-bitset2 | bitset_DEPENDS= math/pecl-bitset2@${PHP_FLAVOR} | ||||
. endif | . endif | ||||
bz2_DEPENDS= archivers/php${PHP_VER}-bz2 | bz2_DEPENDS= archivers/php${PHP_VER}-bz2 | ||||
calendar_DEPENDS= misc/php${PHP_VER}-calendar | calendar_DEPENDS= misc/php${PHP_VER}-calendar | ||||
ctype_DEPENDS= textproc/php${PHP_VER}-ctype | ctype_DEPENDS= textproc/php${PHP_VER}-ctype | ||||
curl_DEPENDS= ftp/php${PHP_VER}-curl | curl_DEPENDS= ftp/php${PHP_VER}-curl | ||||
dba_DEPENDS= databases/php${PHP_VER}-dba | dba_DEPENDS= databases/php${PHP_VER}-dba | ||||
dbase_DEPENDS= databases/php${PHP_VER}-dbase | dbase_DEPENDS= databases/php${PHP_VER}-dbase | ||||
dom_DEPENDS= textproc/php${PHP_VER}-dom | dom_DEPENDS= textproc/php${PHP_VER}-dom | ||||
enchant_DEPENDS= textproc/php${PHP_VER}-enchant | enchant_DEPENDS= textproc/php${PHP_VER}-enchant | ||||
exif_DEPENDS= graphics/php${PHP_VER}-exif | exif_DEPENDS= graphics/php${PHP_VER}-exif | ||||
fileinfo_DEPENDS= sysutils/php${PHP_VER}-fileinfo | fileinfo_DEPENDS= sysutils/php${PHP_VER}-fileinfo | ||||
filter_DEPENDS= security/php${PHP_VER}-filter | filter_DEPENDS= security/php${PHP_VER}-filter | ||||
ftp_DEPENDS= ftp/php${PHP_VER}-ftp | ftp_DEPENDS= ftp/php${PHP_VER}-ftp | ||||
gd_DEPENDS= graphics/php${PHP_VER}-gd | gd_DEPENDS= graphics/php${PHP_VER}-gd | ||||
gettext_DEPENDS=devel/php${PHP_VER}-gettext | gettext_DEPENDS=devel/php${PHP_VER}-gettext | ||||
gmp_DEPENDS= math/php${PHP_VER}-gmp | gmp_DEPENDS= math/php${PHP_VER}-gmp | ||||
hash_DEPENDS= security/php${PHP_VER}-hash | hash_DEPENDS= security/php${PHP_VER}-hash | ||||
iconv_DEPENDS= converters/php${PHP_VER}-iconv | iconv_DEPENDS= converters/php${PHP_VER}-iconv | ||||
igbinary_DEPENDS= converters/pecl-igbinary | igbinary_DEPENDS= converters/pecl-igbinary@${PHP_FLAVOR} | ||||
imap_DEPENDS= mail/php${PHP_VER}-imap | imap_DEPENDS= mail/php${PHP_VER}-imap | ||||
interbase_DEPENDS= databases/php${PHP_VER}-interbase | interbase_DEPENDS= databases/php${PHP_VER}-interbase | ||||
. if ${PHP_VER} == 70 || ${PHP_VER} == 71 || ${PHP_VER} == 72 | . if ${PHP_VER} == 70 || ${PHP_VER} == 71 || ${PHP_VER} == 72 | ||||
intl_DEPENDS= devel/php${PHP_VER}-intl | intl_DEPENDS= devel/php${PHP_VER}-intl | ||||
. else | . else | ||||
intl_DEPENDS= devel/pecl-intl | intl_DEPENDS= devel/pecl-intl@${PHP_FLAVOR} | ||||
. 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 | ||||
. if ${PHP_VER} >= 72 | . if ${PHP_VER} >= 72 | ||||
mcrypt_DEPENDS= security/pecl-mcrypt | mcrypt_DEPENDS= security/pecl-mcrypt@${PHP_FLAVOR} | ||||
. else | . else | ||||
mcrypt_DEPENDS= security/php${PHP_VER}-mcrypt | mcrypt_DEPENDS= security/php${PHP_VER}-mcrypt | ||||
. endif | . endif | ||||
. if ${PHP_VER} >= 70 | . if ${PHP_VER} >= 70 | ||||
memcache_DEPENDS= databases/php${PHP_VER}-memcache | memcache_DEPENDS= databases/php-memcache@${PHP_FLAVOR} | ||||
. else | . else | ||||
memcache_DEPENDS= databases/pecl-memcache | memcache_DEPENDS= databases/pecl-memcache@${PHP_FLAVOR} | ||||
. endif | . endif | ||||
. if ${PHP_VER} >= 70 | . if ${PHP_VER} >= 70 | ||||
memcached_DEPENDS= databases/pecl-memcached | memcached_DEPENDS= databases/pecl-memcached@${PHP_FLAVOR} | ||||
. else | . else | ||||
memcached_DEPENDS= databases/pecl-memcached2 | memcached_DEPENDS= databases/pecl-memcached2@${PHP_FLAVOR} | ||||
. endif | . endif | ||||
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 | ||||
pcntl_DEPENDS= devel/php${PHP_VER}-pcntl | pcntl_DEPENDS= devel/php${PHP_VER}-pcntl | ||||
pdf_DEPENDS= print/pecl-pdflib | pdf_DEPENDS= print/pecl-pdflib@${PHP_FLAVOR} | ||||
pdo_DEPENDS= databases/php${PHP_VER}-pdo | pdo_DEPENDS= databases/php${PHP_VER}-pdo | ||||
pdo_dblib_DEPENDS= databases/php${PHP_VER}-pdo_dblib | pdo_dblib_DEPENDS= databases/php${PHP_VER}-pdo_dblib | ||||
pdo_firebird_DEPENDS= databases/php${PHP_VER}-pdo_firebird | pdo_firebird_DEPENDS= databases/php${PHP_VER}-pdo_firebird | ||||
pdo_mysql_DEPENDS= databases/php${PHP_VER}-pdo_mysql | pdo_mysql_DEPENDS= databases/php${PHP_VER}-pdo_mysql | ||||
pdo_odbc_DEPENDS= databases/php${PHP_VER}-pdo_odbc | pdo_odbc_DEPENDS= databases/php${PHP_VER}-pdo_odbc | ||||
pdo_pgsql_DEPENDS= databases/php${PHP_VER}-pdo_pgsql | pdo_pgsql_DEPENDS= databases/php${PHP_VER}-pdo_pgsql | ||||
pdo_sqlite_DEPENDS= databases/php${PHP_VER}-pdo_sqlite | pdo_sqlite_DEPENDS= databases/php${PHP_VER}-pdo_sqlite | ||||
pgsql_DEPENDS= databases/php${PHP_VER}-pgsql | pgsql_DEPENDS= databases/php${PHP_VER}-pgsql | ||||
phar_DEPENDS= archivers/php${PHP_VER}-phar | phar_DEPENDS= archivers/php${PHP_VER}-phar | ||||
posix_DEPENDS= sysutils/php${PHP_VER}-posix | posix_DEPENDS= sysutils/php${PHP_VER}-posix | ||||
pspell_DEPENDS= textproc/php${PHP_VER}-pspell | pspell_DEPENDS= textproc/php${PHP_VER}-pspell | ||||
radius_DEPENDS= net/pecl-radius | radius_DEPENDS= net/pecl-radius@${PHP_FLAVOR} | ||||
readline_DEPENDS= devel/php${PHP_VER}-readline | readline_DEPENDS= devel/php${PHP_VER}-readline | ||||
recode_DEPENDS= converters/php${PHP_VER}-recode | recode_DEPENDS= converters/php${PHP_VER}-recode | ||||
redis_DEPENDS= databases/pecl-redis | redis_DEPENDS= databases/pecl-redis@${PHP_FLAVOR} | ||||
session_DEPENDS=www/php${PHP_VER}-session | session_DEPENDS=www/php${PHP_VER}-session | ||||
shmop_DEPENDS= devel/php${PHP_VER}-shmop | shmop_DEPENDS= devel/php${PHP_VER}-shmop | ||||
simplexml_DEPENDS= textproc/php${PHP_VER}-simplexml | simplexml_DEPENDS= textproc/php${PHP_VER}-simplexml | ||||
snmp_DEPENDS= net-mgmt/php${PHP_VER}-snmp | snmp_DEPENDS= net-mgmt/php${PHP_VER}-snmp | ||||
soap_DEPENDS= net/php${PHP_VER}-soap | soap_DEPENDS= net/php${PHP_VER}-soap | ||||
sockets_DEPENDS=net/php${PHP_VER}-sockets | sockets_DEPENDS=net/php${PHP_VER}-sockets | ||||
sodium_DEPENDS= security/php${PHP_VER}-sodium | sodium_DEPENDS= security/php${PHP_VER}-sodium | ||||
spl_DEPENDS= devel/php${PHP_VER}-spl | spl_DEPENDS= devel/php${PHP_VER}-spl | ||||
Show All 36 Lines |
I don't understand the new conditional. Why is it used here?