Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/php.mk
Show First 20 Lines • Show All 269 Lines • ▼ Show 20 Lines | |||||
. endif | . endif | ||||
_USES_stage+= 899:add-plist-phpext | _USES_stage+= 899:add-plist-phpext | ||||
add-plist-phpext: | add-plist-phpext: | ||||
@${ECHO_CMD} "lib/php/${PHP_EXT_DIR}/${PHP_MODNAME}.so" \ | @${ECHO_CMD} "lib/php/${PHP_EXT_DIR}/${PHP_MODNAME}.so" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
@${FIND} -P ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME} ! -type d 2>/dev/null | \ | @${FIND} -P ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME} ! -type d 2>/dev/null | \ | ||||
${SED} -ne 's,^${STAGEDIR}${PREFIX}/,,p' >> ${TMPPLIST} | ${SED} -ne 's,^${STAGEDIR}${PREFIX}/,,p' >> ${TMPPLIST} | ||||
@${ECHO_CMD} "@exec echo \#include \\\"ext/${PHP_MODNAME}/config.h\\\" >> %D/include/php/ext/php_config.h" \ | @${ECHO_CMD} "@postexec echo \#include \\\"ext/${PHP_MODNAME}/config.h\\\" >> %D/include/php/ext/php_config.h" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
@${ECHO_CMD} "@unexec 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} "@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} "@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} "@unexec ${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} "" >> ${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} "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} "configuration file to automatically load the installed extension:" >> ${PHP_EXT_PKGMESSAGE} | ||||
@${ECHO_CMD} "" >> ${PHP_EXT_PKGMESSAGE} | @${ECHO_CMD} "" >> ${PHP_EXT_PKGMESSAGE} | ||||
▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines |