aboutsummaryrefslogtreecommitdiffstats
path: root/devel/php5-ice/Makefile
blob: 9b4eacbe48be0f5314ac68f59040c30586a484ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Created by: DIrk Ye <dirk.ye@gmail.com>
# $FreeBSD$

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
USES+=  php:build
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
    @${ECHO_CMD} "extension=${PHP_MODNAME}.so" > ${STAGEDIR}${PREFIX}/etc/php/ext-20-ice.ini

security-check:
    @${ECHO_CMD} "****************************************************************************"
    @${ECHO_CMD} ""
    @${ECHO_CMD} "The following line has been added to your ${PREFIX}/etc/php/ext-20-ice.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"