# Created by: DIrk Ye # $FreeBSD: head/devel/php5-ice/Makefile 412346 2016-04-01 14:00:51Z mat $ CATEGORIES= devel PKGNAMEPREFIX= php5- MAINTAINER= freebsd@grem.de COMMENT= Ice (Internet Communications Engine) language mapping for PHP LICENSE= GPLv2 BUILD_DEPENDS= mcpp:devel/mcpp \ slice2php:devel/ice LIB_DEPENDS= libIce.so.${LIB_VRS}:devel/ice OPTIONS_DEFINE= DEBUG NAMESPACES OPTIONS_DEFAULT= NAMESPACES_DESC= Use PHP namespaces (recommended) SLAVE_PORT= yes MASTERDIR= ${.CURDIR}/../ice PLIST= ${.CURDIR}/pkg-plist MAKE_ARGS+= PHP_EXT_DIR=${PHP_EXT_DIR} ICE_HOME=${LOCALBASE} \ PHP_HOME=${LOCALBASE} OPTIMIZE=yes USE_PHP= yes USE_PHP_BUILD= yes IGNORE_WITH_PHP=70 BUILD_WRKSRC= ${WRKSRC}/php INSTALL_WRKSRC= ${WRKSRC}/php LIB_VRS= ${PORTVERSION:S|.||g:C|0$||} PHP_MODNAME?= IcePHP post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/*.so @${MKDIR} ${STAGEDIR}${PREFIX}/etc/php add-plist-info: @${ECHO_CMD} "@exec mkdir -p %D/etc/php" \ >> ${TMPPLIST} @${ECHO_CMD} "@exec echo extension=${PHP_MODNAME}.so >> %D/etc/php/extensions.ini" \ >> ${TMPPLIST} @${ECHO_CMD} "@unexec cp %D/etc/php/extensions.ini %D/etc/php/extensions.ini.orig" \ >> ${TMPPLIST} @${ECHO_CMD} "@unexec grep -v extension=${PHP_MODNAME}\\\.so %D/etc/php/extensions.ini.orig > %D/etc/php/extensions.ini || true" \ >> ${TMPPLIST} @${ECHO_CMD} "@unexec rm %D/etc/php/extensions.ini.orig" \ >> ${TMPPLIST} @${ECHO_CMD} "@unexec [ -s %D/etc/php/extensions.ini ] || rm %D/etc/php/extensions.ini" \ >> ${TMPPLIST} @${ECHO_CMD} "@unexec rmdir %D/etc/php 2> /dev/null || true" \ >> ${TMPPLIST} security-check: @${ECHO_CMD} "****************************************************************************" @${ECHO_CMD} "" @${ECHO_CMD} "The following line has been added to your ${PREFIX}/etc/php/extensions.ini" @${ECHO_CMD} "configuration file to automatically load the installed extension:" @${ECHO_CMD} "" @${ECHO_CMD} "extension=${PHP_MODNAME}.so" @${ECHO_CMD} "" @${ECHO_CMD} "****************************************************************************" .include "${MASTERDIR}/Makefile"