|
Lines 6-26
Link Here
|
| 6 |
# |
6 |
# |
| 7 |
|
7 |
|
| 8 |
PORTNAME= eaccelerator |
8 |
PORTNAME= eaccelerator |
| 9 |
PORTVERSION= 0.9.5.3 |
9 |
PORTVERSION= 0.9.6 |
| 10 |
CATEGORIES= www |
10 |
CATEGORIES= www |
| 11 |
MASTER_SITES= http://bart.eaccelerator.net/source/${PORTVERSION}/ |
11 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/eAccelerator%20${PORTVERSION}/ \ |
|
|
12 |
http://bart.eaccelerator.net/source/${PORTVERSION}/ |
| 12 |
|
13 |
|
| 13 |
MAINTAINER= ale@FreeBSD.org |
14 |
MAINTAINER= ale@FreeBSD.org |
| 14 |
COMMENT= An opcode cache for PHP with encoder and loader |
15 |
COMMENT= A free open-source PHP accelerator & optimizer |
| 15 |
|
16 |
|
|
|
17 |
IGNORE_WITH_PHP=4 |
| 16 |
USE_PHP= session |
18 |
USE_PHP= session |
| 17 |
USE_PHPIZE= yes |
19 |
USE_PHPIZE= yes |
| 18 |
USE_PHP_BUILD= yes |
20 |
USE_PHP_BUILD= yes |
| 19 |
|
21 |
|
| 20 |
CONFIGURE_ARGS= --enable-eaccelerator=shared \ |
22 |
CONFIGURE_ARGS= --enable-eaccelerator=shared \ |
|
|
23 |
--with-eaccelerator-content-caching \ |
| 21 |
--with-eaccelerator-shared-memory \ |
24 |
--with-eaccelerator-shared-memory \ |
| 22 |
--with-eaccelerator-sessions \ |
25 |
--with-eaccelerator-sessions \ |
| 23 |
--with-eaccelerator-content-caching \ |
|
|
| 24 |
--with-eaccelerator-userid=80 |
26 |
--with-eaccelerator-userid=80 |
| 25 |
|
27 |
|
| 26 |
USE_BZIP2= yes |
28 |
USE_BZIP2= yes |
|
Lines 31-54
Link Here
|
| 31 |
|
33 |
|
| 32 |
.include <bsd.port.pre.mk> |
34 |
.include <bsd.port.pre.mk> |
| 33 |
|
35 |
|
| 34 |
.if ${PHP_VER} == 5 |
|
|
| 35 |
CONFIGURE_ARGS+= --without-eaccelerator-encoder |
| 36 |
PLIST_SUB+= ENCODER="@comment " |
| 37 |
.else |
| 38 |
PLIST_SUB+= ENCODER="" |
| 39 |
|
| 40 |
post-build: |
| 41 |
@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g; s|0777|0755|g" \ |
| 42 |
${WRKSRC}/encoder.php > ${WRKSRC}/encoder |
| 43 |
.endif |
| 44 |
|
| 45 |
do-install: |
36 |
do-install: |
| 46 |
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR} |
37 |
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR} |
| 47 |
${INSTALL_DATA} ${WRKSRC}/modules/${PORTNAME}.so \ |
38 |
${INSTALL_DATA} ${WRKSRC}/modules/${PORTNAME}.so \ |
| 48 |
${PREFIX}/lib/php/${PHP_EXT_DIR} |
39 |
${PREFIX}/lib/php/${PHP_EXT_DIR} |
| 49 |
.if ${PHP_VER} == 4 |
|
|
| 50 |
${INSTALL_SCRIPT} ${WRKSRC}/encoder ${PREFIX}/bin |
| 51 |
.endif |
| 52 |
|
40 |
|
| 53 |
post-install: |
41 |
post-install: |
| 54 |
.if !defined(NOPORTDOCS) |
42 |
.if !defined(NOPORTDOCS) |