2003-09-03 03:04:11 +02:00
|
|
|
# Ports collection makefile for: pear-APC
|
|
|
|
# Date created: 31 August 2003
|
|
|
|
# Whom: Thierry Thomas (<thierry@pompo.net>)
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= APC
|
2012-05-16 09:37:17 +02:00
|
|
|
DISTVERSION= 3.1.10
|
2005-02-26 22:44:16 +01:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://pecl.php.net/get/
|
|
|
|
PKGNAMEPREFIX= pecl-
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
DIST_SUBDIR= PECL
|
2003-09-03 03:04:11 +02:00
|
|
|
|
2012-02-01 19:58:05 +01:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2003-09-03 03:04:11 +02:00
|
|
|
COMMENT= Alternative PHP Cache
|
|
|
|
|
2004-02-09 12:43:38 +01:00
|
|
|
USE_PHP= yes
|
2010-04-22 02:09:12 +02:00
|
|
|
IGNORE_WITH_PHP=4
|
2005-02-26 22:44:16 +01:00
|
|
|
USE_PHPEXT= yes
|
|
|
|
PHP_MODNAME= apc
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2003-09-03 03:04:11 +02:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --enable-apc
|
2012-02-01 19:58:05 +01:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2003-09-03 03:04:11 +02:00
|
|
|
|
2010-10-07 18:57:17 +02:00
|
|
|
OPTIONS= IPC "Enable IPC shm memory support (default: mmap)" off \
|
2005-12-14 21:33:29 +01:00
|
|
|
SEMAPHORES "Enable sysv IPC semaphores (default: fcntl())" off \
|
2009-03-25 05:18:42 +01:00
|
|
|
SPINLOCKS "Enable spinlocks (experimental)" off \
|
2010-04-22 02:09:12 +02:00
|
|
|
FILEHITS "Enable per request cache info" off
|
2005-12-14 21:33:29 +01:00
|
|
|
|
|
|
|
PORTDOCS= *
|
2005-03-01 08:30:34 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2010-10-07 18:57:17 +02:00
|
|
|
.if defined(WITH_IPC)
|
|
|
|
CONFIGURE_ARGS+= --disable-apc-mmap
|
2005-03-01 08:30:34 +01:00
|
|
|
.endif
|
2005-02-26 22:44:16 +01:00
|
|
|
|
2005-07-06 20:25:55 +02:00
|
|
|
.if defined(WITH_SEMAPHORES)
|
|
|
|
CONFIGURE_ARGS+= --enable-apc-sem
|
2005-02-26 22:44:16 +01:00
|
|
|
.endif
|
2003-09-03 03:04:11 +02:00
|
|
|
|
2009-03-25 05:18:42 +01:00
|
|
|
.if defined(WITH_SPINLOCKS)
|
|
|
|
CONFIGURE_ARGS+= --enable-apc-spinlocks
|
|
|
|
.endif
|
|
|
|
|
2008-01-25 04:01:54 +01:00
|
|
|
.if defined(WITH_FILEHITS)
|
|
|
|
CONFIGURE_ARGS+= --enable-apc-filehits
|
|
|
|
.endif
|
|
|
|
|
2005-02-26 22:44:16 +01:00
|
|
|
post-install:
|
2003-09-03 03:04:11 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-12-14 21:33:29 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/NOTICE ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/apc.php ${DOCSDIR}
|
2003-09-03 03:04:11 +02:00
|
|
|
.endif
|
2005-02-26 22:44:16 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2003-09-03 03:04:11 +02:00
|
|
|
|
2005-03-01 08:30:34 +01:00
|
|
|
.include <bsd.port.post.mk>
|