diff -ruN pecl-APC.orig/Makefile pecl-APC/Makefile --- pecl-APC.orig/Makefile Tue Mar 1 23:29:51 2005 +++ pecl-APC/Makefile Wed Jul 6 14:12:06 2005 @@ -6,8 +6,8 @@ # PORTNAME= APC -PORTVERSION= 2.0.4 -PORTREVISION= 1 +PORTVERSION= 3.0.2 +PORTREVISION= 0 CATEGORIES= www MASTER_SITES= http://pecl.php.net/get/ PKGNAMEPREFIX= pecl- @@ -18,7 +18,6 @@ COMMENT= Alternative PHP Cache USE_PHP= yes -USE_PHPIZE= yes USE_PHPEXT= yes PHP_MODNAME= apc @@ -29,19 +28,28 @@ OPTIONS= MMAP "Enable mmap memory support (default: IPC shm)" off \ SEMAPHORES "Enable sysv IPC semaphores (default: fcntl())" off \ + PHP4_OPT "Litte optimization for PHP4" off .include -.if ${PHP_VER} == 5 -BROKEN= This port is not compatible with php${PHP_VER} +.if defined(WITH_MMAP) +CONFIGURE_ARGS+= --enable-apc-mmap .endif -.if !defined(WITHOUT_MMAP) -CONFIGURE_ARGS+= --enable-mmap +.if defined(WITH_SEMAPHORES) +CONFIGURE_ARGS+= --enable-apc-sem .endif -.if !defined(WITHOUT_SEMAPHORES) -CONFIGURE_ARGS+= --enable-sem +.if defined(WITH_PHP4_OPT) +.if ${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 +.endif +.else +IGNORE= This optimization it's only to PHP4. PHP5 or newer don't need +.endif .endif .if !defined(NOPORTDOCS) diff -ruN pecl-APC.orig/distinfo pecl-APC/distinfo --- pecl-APC.orig/distinfo Sat Feb 26 18:44:16 2005 +++ pecl-APC/distinfo Wed Jul 6 10:50:30 2005 @@ -1,2 +1,2 @@ -MD5 (PECL/APC-2.0.4.tgz) = 4962f05bc752e3cfa1f662bbdfa33605 -SIZE (PECL/APC-2.0.4.tgz) = 44606 +MD5 (PECL/APC-3.0.2.tgz) = 4e0edfd5bc4f85dcfc4f0f02477ed2f1 +SIZE (PECL/APC-3.0.2.tgz) = 61556