Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.php.mk
| Show First 20 Lines • Show All 197 Lines • ▼ Show 20 Lines | . for header in . ${PHP_HEADER_DIRS} | ||||
| @${MKDIR} ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/${header} | @${MKDIR} ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/${header} | ||||
| @${INSTALL_DATA} ${WRKSRC}/${header}/*.h \ | @${INSTALL_DATA} ${WRKSRC}/${header}/*.h \ | ||||
| ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/${header} | ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/${header} | ||||
| . endfor | . endfor | ||||
| @${RM} -f ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h | @${RM} -f ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h | ||||
| @${GREP} "#define \(COMPILE\|HAVE\|USE\)_" ${WRKSRC}/config.h \ | @${GREP} "#define \(COMPILE\|HAVE\|USE\)_" ${WRKSRC}/config.h \ | ||||
| > ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h | > ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h | ||||
| @${MKDIR} ${STAGEDIR}${PREFIX}/etc/php | @${MKDIR} ${STAGEDIR}${PREFIX}/etc/php | ||||
| .if defined(NO_STAGE) | |||||
| @${ECHO_CMD} \#include \"ext/${PHP_MODNAME}/config.h\" \ | |||||
| >> ${PREFIX}/include/php/ext/php_config.h | |||||
| .if defined(USE_ZENDEXT) | |||||
| @${ECHO_CMD} zend_extension=${PREFIX}/lib/php/${PHP_EXT_DIR}/${PHP_MODNAME}.so \ | |||||
| >> ${PREFIX}/etc/php/extensions.ini | |||||
| .else | |||||
| @${ECHO_CMD} extension=${PHP_MODNAME}.so \ | |||||
| >> ${PREFIX}/etc/php/extensions.ini | |||||
| .endif | |||||
| .endif | |||||
| add-plist-info: add-plist-phpext | add-plist-info: 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} | ||||
| @${ECHO_CMD} "@unexec rmdir %D/lib/php/${PHP_EXT_DIR} 2> /dev/null || true" \ | @${ECHO_CMD} "@unexec rmdir %D/lib/php/${PHP_EXT_DIR} 2> /dev/null || true" \ | ||||
| >> ${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 | \ | ||||
| ▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines | |||||