1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Update to 3.1.11 [1]

- Convert to new options framework
- Sort option handlers
- Cosmetic change

Changes:	http://pecl.php.net/package-changelog.php?package=APC
PR:		ports/170325 [1]
Submitted by:	mm
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2012-08-05 07:13:06 +00:00
parent 296ca06486
commit 9eeb6f3fb8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=302085
2 changed files with 34 additions and 38 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= APC
DISTVERSION= 3.1.10
DISTVERSION= 3.1.11
CATEGORIES= www
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
@ -16,50 +16,46 @@ DIST_SUBDIR= PECL
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Alternative PHP Cache
USE_PHP= yes
IGNORE_WITH_PHP=4
USE_PHPEXT= yes
PHP_MODNAME= apc
OPTIONS_DEFINE= FILEHITS IPC SEMAPHORES SPINLOCKS
FILEHITS_DESC= Per request cache info
IPC_DESC= IPC shm memory support (default: mmap)
SEMAPHORES_DESC=System V IPC semaphores (default: fcntl)
SPINLOCKS_DESC= Spinlocks (experimental)
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
CONFIGURE_ARGS= --enable-apc
CFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ARGS= --enable-apc
IGNORE_WITH_PHP=4
PHP_MODNAME= ${PORTNAME:L}
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
USE_PHP= yes
USE_PHPEXT= yes
OPTIONS= IPC "Enable IPC shm memory support (default: mmap)" off \
SEMAPHORES "Enable sysv IPC semaphores (default: fcntl())" off \
SPINLOCKS "Enable spinlocks (experimental)" off \
FILEHITS "Enable per request cache info" off
PORTDOCS= CHANGELOG INSTALL NOTICE apc.php
PORTDOCS= *
.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
.if defined(WITH_IPC)
CONFIGURE_ARGS+= --disable-apc-mmap
.endif
.if defined(WITH_SEMAPHORES)
CONFIGURE_ARGS+= --enable-apc-sem
.endif
.if defined(WITH_SPINLOCKS)
CONFIGURE_ARGS+= --enable-apc-spinlocks
.endif
.if defined(WITH_FILEHITS)
.if ${PORT_OPTIONS:MFILEHITS}
CONFIGURE_ARGS+= --enable-apc-filehits
.endif
.if ${PORT_OPTIONS:MIPC}
CONFIGURE_ARGS+= --disable-apc-mmap
.endif
.if ${PORT_OPTIONS:MSEMAPHORES}
CONFIGURE_ARGS+= --enable-apc-sem
.endif
.if ${PORT_OPTIONS:MSPINLOCKS}
CONFIGURE_ARGS+= --enable-apc-spinlocks
.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}/apc.php ${DOCSDIR}
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (PECL/APC-3.1.10.tgz) = 99f260b32592f1b50da9c7a83fad3c5cbdb2484fa01aee6cc04caadd8cd4fc44
SIZE (PECL/APC-3.1.10.tgz) = 156208
SHA256 (PECL/APC-3.1.11.tgz) = 478ae91c735087dda4f02d03399fb06ceba4355125ad8fd532b187c93004ebc7
SIZE (PECL/APC-3.1.11.tgz) = 157478