freebsd-ports/www/pecl-APC/Makefile

66 lines
1.4 KiB
Makefile
Raw Normal View History

# 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
CATEGORIES= www
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
EXTRACT_SUFX= .tgz
DIST_SUBDIR= PECL
2012-02-01 19:58:05 +01:00
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Alternative PHP Cache
USE_PHP= yes
IGNORE_WITH_PHP=4
USE_PHPEXT= yes
PHP_MODNAME= apc
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
CONFIGURE_ARGS= --enable-apc
2012-02-01 19:58:05 +01:00
CFLAGS+= -I${LOCALBASE}/include
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= *
.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)
CONFIGURE_ARGS+= --enable-apc-filehits
.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}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>