Date: Mon, 18 May 2009 16:35:04 GMT From: Till Klampaeckel <till@php.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/134656: Create www/pecl-APC-dev Message-ID: <200905181635.n4IGZ4SH062633@www.freebsd.org> Resent-Message-ID: <200905181640.n4IGe03m029230@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 134656 >Category: ports >Synopsis: Create www/pecl-APC-dev >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon May 18 16:40:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Till Klampaeckel >Release: n/a >Organization: n/a >Environment: >Description: APC "recently" released beta versions that break compat with PHP4 but add other features and improvements. They are still beta versions, but I was wondering if they could be rolled into their own port. >How-To-Repeat: >Fix: Obviously, make makesum in the new port dir. Here's the diff between old and new: Files pecl-APC/Makefile and pecl-APC-devel/Makefile differ Files pecl-APC/distinfo and pecl-APC-devel/distinfo differ Only in pecl-APC/files: patch-apc_sem.c Here's the patch to the Makefile: --- pecl-APC/Makefile 2009-03-24 23:18:42.000000000 -0500 +++ pecl-APC-devel/Makefile 2009-05-18 11:31:24.000000000 -0500 @@ -6,7 +6,7 @@ # PORTNAME= APC -DISTVERSION= 3.0.19 +DISTVERSION= 3.1.2 CATEGORIES= www MASTER_SITES= http://pecl.php.net/get/ PKGNAMEPREFIX= pecl- @@ -26,10 +26,9 @@ 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 \ + SEMAPHORES "Enable sysv IPC semaphores (default: fcntl())" off \ SPINLOCKS "Enable spinlocks (experimental)" off \ FILEHITS "Enable per request cache info" off \ - PHP4_OPT "Little optimization to PHP4" off PORTDOCS= * @@ -51,26 +50,7 @@ CONFIGURE_ARGS+= --enable-apc-spinlocks CONFIGURE_ARGS+= --enable-apc-filehits .endif -.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/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 -pre-configure: - @${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 -.endif +CONFLICTS= pecl-APC-3.0.* post-install: .if !defined(NOPORTDOCS) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905181635.n4IGZ4SH062633>