Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/php.mk
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | MASTER_SITES= https://pecl.php.net/get/ \ | ||||
http://pecl.php.net/get/ | http://pecl.php.net/get/ | ||||
. endif | . endif | ||||
PKGNAMEPREFIX= ${PECL_PKGNAMEPREFIX} | PKGNAMEPREFIX= ${PECL_PKGNAMEPREFIX} | ||||
DIST_SUBDIR= PECL | DIST_SUBDIR= PECL | ||||
. endif | . endif | ||||
PHPBASE?= ${LOCALBASE} | PHPBASE?= ${LOCALBASE} | ||||
_ALL_PHP_VERSIONS= 72 73 74 | _ALL_PHP_VERSIONS= 72 73 74 80 | ||||
# Make the already installed PHP the default one. | # 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} | _INSTALLED_PHP_VER:= ${PHP_VER} | ||||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
. endif | . endif | ||||
# If lang/php is not installed, or if we have a php flavor but want a non | # If lang/php is not installed, or if we have a php flavor but want a non | ||||
# default one, we need to overwrite those. | # default one, we need to overwrite those. | ||||
. if empty(PHP_EXT_DIR) || empty(PHP_EXT_INC) || \ | . if empty(PHP_EXT_DIR) || empty(PHP_EXT_INC) || \ | ||||
(${FLAVOR:Mphp[0-9][0-9]} && ${FLAVOR} != ${FLAVORS:[1]}) | (${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. | ||||
. if ${PHP_VER} == 74 | . if ${PHP_VER} == 80 | ||||
PHP_EXT_DIR= 20200930 | |||||
PHP_EXT_INC= hash pcre spl | |||||
. elif ${PHP_VER} == 74 | |||||
PHP_EXT_DIR= 20190902 | PHP_EXT_DIR= 20190902 | ||||
PHP_EXT_INC= hash pcre spl | PHP_EXT_INC= hash pcre spl | ||||
. elif ${PHP_VER} == 73 | . elif ${PHP_VER} == 73 | ||||
PHP_EXT_DIR= 20180731 | PHP_EXT_DIR= 20180731 | ||||
PHP_EXT_INC= pcre spl | PHP_EXT_INC= pcre spl | ||||
. elif ${PHP_VER} == 72 | . elif ${PHP_VER} == 72 | ||||
PHP_EXT_DIR= 20170718 | PHP_EXT_DIR= 20170718 | ||||
PHP_EXT_INC= pcre spl | PHP_EXT_INC= pcre spl | ||||
▲ Show 20 Lines • Show All 182 Lines • ▼ Show 20 Lines | |||||
_USE_PHP_ALL= bcmath bitset bz2 calendar ctype curl dba dom \ | _USE_PHP_ALL= bcmath bitset bz2 calendar ctype curl dba dom \ | ||||
enchant exif fileinfo filter ftp gd gettext gmp \ | enchant exif fileinfo filter ftp gd gettext gmp \ | ||||
hash iconv igbinary imap intl json ldap mbstring mcrypt \ | hash iconv igbinary imap intl json ldap mbstring mcrypt \ | ||||
memcache memcached mysqli odbc opcache \ | memcache memcached 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 redis session shmop simplexml snmp soap\ | pspell radius readline redis session shmop simplexml snmp soap\ | ||||
sockets spl sqlite3 sysvmsg sysvsem sysvshm \ | sockets spl sqlite3 sysvmsg sysvsem sysvshm \ | ||||
tidy tokenizer xml xmlreader xmlrpc xmlwriter xsl zip zlib | tidy tokenizer xml xmlreader xmlwriter xsl zip zlib | ||||
# version specific components | # version specific components | ||||
_USE_PHP_VER72= ${_USE_PHP_ALL} interbase recode sodium wddx | _USE_PHP_VER72= ${_USE_PHP_ALL} interbase recode sodium xmlrpc wddx | ||||
_USE_PHP_VER73= ${_USE_PHP_ALL} interbase recode sodium wddx | _USE_PHP_VER73= ${_USE_PHP_ALL} interbase recode sodium xmlrpc wddx | ||||
_USE_PHP_VER74= ${_USE_PHP_ALL} ffi sodium | _USE_PHP_VER74= ${_USE_PHP_ALL} ffi sodium xmlrpc | ||||
_USE_PHP_VER80= ${_USE_PHP_ALL} ffi sodium | |||||
bcmath_DEPENDS= math/php${PHP_VER}-bcmath | bcmath_DEPENDS= math/php${PHP_VER}-bcmath | ||||
bitset_DEPENDS= math/pecl-bitset@${PHP_FLAVOR} | bitset_DEPENDS= math/pecl-bitset@${PHP_FLAVOR} | ||||
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 | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |