aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-07-07 02:25:55 +0800
committerpav <pav@FreeBSD.org>2005-07-07 02:25:55 +0800
commit845becc8319abbb025ff6454fd493eb1d189bd60 (patch)
tree68a427bac625d858240f7f698c002d565b948803
parent44e40751344374bf6a1c662fa88934b93a4184a5 (diff)
downloadfreebsd-ports-graphics-845becc8319abbb025ff6454fd493eb1d189bd60.tar.gz
freebsd-ports-graphics-845becc8319abbb025ff6454fd493eb1d189bd60.tar.zst
freebsd-ports-graphics-845becc8319abbb025ff6454fd493eb1d189bd60.zip
- Update to 3.0.2
PR: ports/83069 Submitted by: maintainer
-rw-r--r--www/pecl-APC-devel/Makefile25
-rw-r--r--www/pecl-APC-devel/distinfo4
-rw-r--r--www/pecl-APC/Makefile25
-rw-r--r--www/pecl-APC/distinfo4
4 files changed, 36 insertions, 22 deletions
diff --git a/www/pecl-APC-devel/Makefile b/www/pecl-APC-devel/Makefile
index 6db97265a31..1eea17764e9 100644
--- a/www/pecl-APC-devel/Makefile
+++ b/www/pecl-APC-devel/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= APC
-PORTVERSION= 2.0.4
-PORTREVISION= 1
+PORTVERSION= 3.0.2
CATEGORIES= www
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
@@ -18,7 +17,6 @@ MAINTAINER= marcus@corp.grupos.com.br
COMMENT= Alternative PHP Cache
USE_PHP= yes
-USE_PHPIZE= yes
USE_PHPEXT= yes
PHP_MODNAME= apc
@@ -29,19 +27,28 @@ 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 for PHP4" off
.include <bsd.port.pre.mk>
-.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 is only for PHP4. PHP5 or newer does not need it
+.endif
.endif
.if !defined(NOPORTDOCS)
diff --git a/www/pecl-APC-devel/distinfo b/www/pecl-APC-devel/distinfo
index 49a453a60f5..26c9e388c14 100644
--- a/www/pecl-APC-devel/distinfo
+++ b/www/pecl-APC-devel/distinfo
@@ -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
diff --git a/www/pecl-APC/Makefile b/www/pecl-APC/Makefile
index 6db97265a31..1eea17764e9 100644
--- a/www/pecl-APC/Makefile
+++ b/www/pecl-APC/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= APC
-PORTVERSION= 2.0.4
-PORTREVISION= 1
+PORTVERSION= 3.0.2
CATEGORIES= www
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
@@ -18,7 +17,6 @@ MAINTAINER= marcus@corp.grupos.com.br
COMMENT= Alternative PHP Cache
USE_PHP= yes
-USE_PHPIZE= yes
USE_PHPEXT= yes
PHP_MODNAME= apc
@@ -29,19 +27,28 @@ 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 for PHP4" off
.include <bsd.port.pre.mk>
-.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 is only for PHP4. PHP5 or newer does not need it
+.endif
.endif
.if !defined(NOPORTDOCS)
diff --git a/www/pecl-APC/distinfo b/www/pecl-APC/distinfo
index 49a453a60f5..26c9e388c14 100644
--- a/www/pecl-APC/distinfo
+++ b/www/pecl-APC/distinfo
@@ -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