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= 71 72 73 | _ALL_PHP_VERSIONS= 71 72 73 74 | ||||
# 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 47 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} == 73 | . if ${PHP_VER} == 74 | ||||
PHP_EXT_DIR= 20190902 | |||||
PHP_EXT_INC= hash pcre spl | |||||
. 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 | ||||
. 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 | ||||
▲ Show 20 Lines • Show All 176 Lines • ▼ Show 20 Lines | add-plist-phpext: | ||||
@${ECHO_CMD} "]" >> ${PHP_EXT_PKGMESSAGE} | @${ECHO_CMD} "]" >> ${PHP_EXT_PKGMESSAGE} | ||||
. endif | . endif | ||||
# Extensions | # Extensions | ||||
. if defined(USE_PHP) && ${USE_PHP:tl} != "yes" | . if defined(USE_PHP) && ${USE_PHP:tl} != "yes" | ||||
# non-version specific components | # non-version specific components | ||||
_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 interbase 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 recode 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 wddx xml xmlreader xmlrpc xmlwriter xsl zip zlib | tidy tokenizer xml xmlreader xmlrpc xmlwriter xsl zip zlib | ||||
# version specific components | # version specific components | ||||
_USE_PHP_VER71= ${_USE_PHP_ALL} | _USE_PHP_VER71= ${_USE_PHP_ALL} interbase recode wddx | ||||
_USE_PHP_VER72= ${_USE_PHP_ALL} sodium | _USE_PHP_VER72= ${_USE_PHP_ALL} interbase recode sodium wddx | ||||
_USE_PHP_VER73= ${_USE_PHP_ALL} sodium | _USE_PHP_VER73= ${_USE_PHP_ALL} interbase recode sodium wddx | ||||
_USE_PHP_VER74= ${_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 | ||||
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 | ||||
ffi_DEPENDS= devel/php${PHP_VER}-ffi | |||||
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 | ||||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |