Changeset View
Changeset View
Standalone View
Standalone View
devel/php5-ice/Makefile
# Created by: DIrk Ye <dirk.ye@gmail.com> | # Created by: DIrk Ye <dirk.ye@gmail.com> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
CATEGORIES= devel | CATEGORIES= devel | ||||
PKGNAMEPREFIX= php5- | PKGNAMEPREFIX= php5- | ||||
MAINTAINER= freebsd@grem.de | MAINTAINER= freebsd@grem.de | ||||
COMMENT= Ice (Internet Communications Engine) language mapping for PHP | COMMENT= Ice (Internet Communications Engine) language mapping for PHP | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
BUILD_DEPENDS= mcpp:${PORTSDIR}/devel/mcpp \ | BUILD_DEPENDS= mcpp:${PORTSDIR}/devel/mcpp \ | ||||
slice2php:${PORTSDIR}/devel/ice | slice2php:${PORTSDIR}/devel/ice | ||||
LIB_DEPENDS= libIce.so.${LIB_VRS}:${PORTSDIR}/devel/ice | LIB_DEPENDS= libIce.so.${LIB_VRS}:${PORTSDIR}/devel/ice | ||||
OPTIONS_DEFINE= DEBUG DOCS NAMESPACES | OPTIONS_DEFINE= DEBUG NAMESPACES | ||||
OPTIONS_DEFAULT= | OPTIONS_DEFAULT= | ||||
NAMESPACES_DESC= Use PHP namespaces (recommended) | NAMESPACES_DESC= Use PHP namespaces (recommended) | ||||
SLAVE_PORT= yes | SLAVE_PORT= yes | ||||
MASTERDIR= ${.CURDIR}/../ice | MASTERDIR= ${.CURDIR}/../ice | ||||
PLIST= ${.CURDIR}/pkg-plist | PLIST= ${.CURDIR}/pkg-plist | ||||
MAKE_ARGS+= PHP_EXT_DIR=${PHP_EXT_DIR} ICE_HOME=${LOCALBASE} \ | MAKE_ARGS+= PHP_EXT_DIR=${PHP_EXT_DIR} ICE_HOME=${LOCALBASE} \ | ||||
PHP_HOME=${LOCALBASE} OPTIMIZE=yes | PHP_HOME=${LOCALBASE} OPTIMIZE=yes | ||||
USE_PHP= yes | USE_PHP= yes | ||||
USE_PHP_BUILD= yes | USE_PHP_BUILD= yes | ||||
DEFAULT_PHP_VER=5 | |||||
IGNORE_WITH_PHP=52 | IGNORE_WITH_PHP=52 | ||||
bapt: This should never ever be done in a port Makefile! this is a user setting not a port setting | |||||
Not Done Inline ActionsI assume that's also true for what's been there before. One thing I noticed: After removing the line, the package is built using PHP 5.6 (before it was 5.4). So it seems like the default PHP version is 5.6, but the defalt PHP5 version is 5.4. Seems a bit counter intuitive to me (bsd.php.mk equates 5.4 with and then says PHP5_LAST_VER= 54). grembo: I assume that's also true for what's been there before.
One thing I noticed: After removing… | |||||
BUILD_WRKSRC= ${WRKSRC}/php | BUILD_WRKSRC= ${WRKSRC}/php | ||||
INSTALL_WRKSRC= ${WRKSRC}/php | INSTALL_WRKSRC= ${WRKSRC}/php | ||||
LIB_VRS= ${PORTVERSION:S|.||g:C|0$||} | LIB_VRS= ${PORTVERSION:S|.||g:C|0$||} | ||||
PHP_MODNAME?= IcePHP | PHP_MODNAME?= IcePHP | ||||
post-install: | post-install: | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/*.so | |||||
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/php | @${MKDIR} ${STAGEDIR}${PREFIX}/etc/php | ||||
add-plist-info: | add-plist-info: | ||||
@${ECHO_CMD} "@exec mkdir -p %D/etc/php" \ | @${ECHO_CMD} "@exec mkdir -p %D/etc/php" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
@${ECHO_CMD} "@exec echo extension=${PHP_MODNAME}.so >> %D/etc/php/extensions.ini" \ | @${ECHO_CMD} "@exec echo extension=${PHP_MODNAME}.so >> %D/etc/php/extensions.ini" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
@${ECHO_CMD} "@unexec cp %D/etc/php/extensions.ini %D/etc/php/extensions.ini.orig" \ | @${ECHO_CMD} "@unexec cp %D/etc/php/extensions.ini %D/etc/php/extensions.ini.orig" \ | ||||
Show All 21 Lines |
This should never ever be done in a port Makefile! this is a user setting not a port setting