diff options
author | mnag <mnag@FreeBSD.org> | 2005-12-15 04:33:29 +0800 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2005-12-15 04:33:29 +0800 |
commit | 87f90c0e7cda1e58a61a18160e5897b9b785ed69 (patch) | |
tree | 6779eca2e295f6f175c77ba5f8e2af596c36390e /www/pecl-APC-devel | |
parent | e6edc128c3d53f0a9bbda0a8c8a35634235a11f7 (diff) | |
download | freebsd-ports-gnome-87f90c0e7cda1e58a61a18160e5897b9b785ed69.tar.gz freebsd-ports-gnome-87f90c0e7cda1e58a61a18160e5897b9b785ed69.tar.zst freebsd-ports-gnome-87f90c0e7cda1e58a61a18160e5897b9b785ed69.zip |
Fix PHP4 optimization with new apache versions
Bump PORTREVISION
Install apc.php in DOCSDIR
Add message about APC and PHP >= 5.1 [1]
Thanks to: Rasmus Lerdorf [1]
Diffstat (limited to 'www/pecl-APC-devel')
-rw-r--r-- | www/pecl-APC-devel/Makefile | 49 |
1 files changed, 34 insertions, 15 deletions
diff --git a/www/pecl-APC-devel/Makefile b/www/pecl-APC-devel/Makefile index 8bd2ea9bfc38..2407019112f1 100644 --- a/www/pecl-APC-devel/Makefile +++ b/www/pecl-APC-devel/Makefile @@ -7,6 +7,7 @@ PORTNAME= APC PORTVERSION= 3.0.8 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://pecl.php.net/get/ PKGNAMEPREFIX= pecl- @@ -25,9 +26,11 @@ PKGMESSAGE= ${WRKDIR}/pkg-message CONFIGURE_ARGS= --enable-apc -OPTIONS= MMAP "Enable mmap memory support (default: IPC shm)" off \ - SEMAPHORES "Enable sysv IPC semaphores (default: fcntl())" off \ - PHP4_OPT "Little optimization to PHP4" off +OPTIONS= MMAP "Enable mmap memory support (default: IPC shm)" off \ + SEMAPHORES "Enable sysv IPC semaphores (default: fcntl())" off \ + PHP4_OPT "Little optimization to PHP4" off + +PORTDOCS= * .include <bsd.port.pre.mk> @@ -39,29 +42,45 @@ CONFIGURE_ARGS+= --enable-apc-mmap CONFIGURE_ARGS+= --enable-apc-sem .endif -.if defined(WITH_PHP4_OPT) -.if ${PHP_VER} == 4 +.if defined(WITH_PHP4_OPT) && ${PHP_VER} == 4 .if exists(${LOCALBASE}/include/apache/httpd.h) CFLAGS+= -I${LOCALBASE}/include/apache -DAPC_PHP4_STAT .elif exists(${LOCALBASE}/include/apache2/httpd.h) -CFLAGS+= -I${LOCALBASE}/include/apache -DAPC_PHP4_STAT +CFLAGS+= -I${LOCALBASE}/include/apache2 -DAPC_PHP4_STAT +.elif exists(${LOCALBASE}/include/apache21/httpd.h) +CFLAGS+= -I${LOCALBASE}/include/apache21 -DAPC_PHP4_STAT +.elif exists(${LOCALBASE}/include/apache22/httpd.h) +CFLAGS+= -I${LOCALBASE}/include/apache22 -DAPC_PHP4_STAT .endif .else -IGNORE= This optimization is only for PHP4. PHP5 or newer does not need it -.endif -.endif - -.if !defined(NOPORTDOCS) -PORTDOCS= * +pre-extract: + @${ECHO_CMD} + @${ECHO_CMD} "*** WARNING ***" + @${ECHO_CMD} "This optimization is only for PHP4. PHP5 or newer does not need it" + @${ECHO_CMD} "I will continue instalation..." + @${ECHO_CMD} .endif post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/NOTICE ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/NOTICE ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/apc.php ${DOCSDIR} .endif @${CAT} ${PKGMESSAGE} +.if ${PHP_VER} == 5 + @${ECHO_CMD} + @${ECHO_CMD} "*** WARNING *** WARNING *** WARNING ***" + @${ECHO_CMD} + @${ECHO_CMD} "To APC work with PHP >= 5.1 you need add" + @${ECHO_CMD} "below option in your php.ini" + @${ECHO_CMD} + @${ECHO_CMD} "auto_globals_jit = Off" + @${ECHO_CMD} + @${ECHO_CMD} "*** WARNING *** WARNING *** WARNING ***" + @${ECHO_CMD} +.endif .include <bsd.port.post.mk> |