Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/php.mk
Show First 20 Lines • Show All 229 Lines • ▼ Show 20 Lines | |||||
.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 ${php_ARGS:Mext} || ${php_ARGS:Mzend} | . if ${php_ARGS:Mext} || ${php_ARGS:Mzend} | ||||
PHP_MODNAME?= ${PORTNAME} | PHP_MODNAME?= ${PORTNAME} | ||||
PHP_EXT_PKGMESSAGE= ${WRKDIR}/php-ext-pkg-message | |||||
_PKGMESSAGES+= ${PHP_EXT_PKGMESSAGE} | |||||
PHP_HEADER_DIRS+= . | PHP_HEADER_DIRS+= . | ||||
# If there is no priority defined, we wing it. | # If there is no priority defined, we wing it. | ||||
. if !defined(PHP_MOD_PRIO) | . if !defined(PHP_MOD_PRIO) | ||||
. if defined(USE_PHP) | . if defined(USE_PHP) | ||||
# If an extension needs another, put it after the others. | # If an extension needs another, put it after the others. | ||||
PHP_MOD_PRIO= 30 | PHP_MOD_PRIO= 30 | ||||
. else | . else | ||||
# Otherwise, put it where it with everybody. | # Otherwise, put it where it with everybody. | ||||
Show All 32 Lines | add-plist-phpext: | ||||
@${ECHO_CMD} "@preunexec cp %D/include/php/ext/php_config.h %D/include/php/ext/php_config.h.orig" \ | @${ECHO_CMD} "@preunexec cp %D/include/php/ext/php_config.h %D/include/php/ext/php_config.h.orig" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
@${ECHO_CMD} "@preunexec 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} "@preunexec 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} "@preunexec ${RM} %D/include/php/ext/php_config.h.orig" \ | @${ECHO_CMD} "@preunexec ${RM} %D/include/php/ext/php_config.h.orig" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
@${ECHO_CMD} "${PHP_EXT_INI_FILE}" \ | @${ECHO_CMD} "${PHP_EXT_INI_FILE}" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
@${ECHO_CMD} "****************************************************************************" > ${PHP_EXT_PKGMESSAGE} | |||||
@${ECHO_CMD} "" >> ${PHP_EXT_PKGMESSAGE} | |||||
@${ECHO_CMD} "The following line has been added to your ${PREFIX}/${PHP_EXT_INI_FILE}" >> ${PHP_EXT_PKGMESSAGE} | |||||
@${ECHO_CMD} "configuration file to automatically load the installed extension:" >> ${PHP_EXT_PKGMESSAGE} | |||||
@${ECHO_CMD} "" >> ${PHP_EXT_PKGMESSAGE} | |||||
. if ${php_ARGS:Mzend} | |||||
@${ECHO_CMD} "zend_extension=${PHP_MODNAME}.so" >> ${PHP_EXT_PKGMESSAGE} | |||||
. else | |||||
@${ECHO_CMD} "extension=${PHP_MODNAME}.so" >> ${PHP_EXT_PKGMESSAGE} | |||||
. endif | |||||
@${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 interbase intl json ldap mbstring mcrypt \ | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |