head	1.28;
access;
symbols
	old_RELEASE_7_3_0:1.27
	old_RELEASE_8_0_0:1.27
	old_RELEASE_7_2_0:1.27
	old_RELEASE_7_1_0:1.26
	old_RELEASE_6_4_0:1.26
	old_RELEASE_5_EOL:1.25
	old_RELEASE_7_0_0:1.20
	old_RELEASE_6_3_0:1.20
	old_PRE_XORG_7:1.20
	old_RELEASE_4_EOL:1.18
	old_RELEASE_6_2_0:1.18
	old_RELEASE_6_1_0:1.15
	old_RELEASE_5_5_0:1.15
	old_RELEASE_6_0_0:1.10
	old_RELEASE_5_4_0:1.7
	old_old_RELEASE_4_11_0:1.5
	old_old_RELEASE_5_3_0:1.5
	old_old_RELEASE_4_10_0:1.4
	old_old_RELEASE_5_2_1:1.2
	old_old_RELEASE_5_2_0:1.2
	old_old_RELEASE_4_9_0:1.1;
locks; strict;
comment	@# @;


1.28
date	2010.04.22.00.11.28;	author mnag;	state dead;
branches;
next	1.27;

1.27
date	2009.03.25.04.18.42;	author mnag;	state Exp;
branches;
next	1.26;

1.26
date	2008.06.09.22.05.03;	author mnag;	state Exp;
branches;
next	1.25;

1.25
date	2008.04.19.14.17.54;	author mnag;	state Exp;
branches;
next	1.24;

1.24
date	2008.04.13.03.01.57;	author mnag;	state Exp;
branches;
next	1.23;

1.23
date	2008.01.25.03.01.54;	author mnag;	state Exp;
branches;
next	1.22;

1.22
date	2008.01.03.01.25.53;	author mnag;	state Exp;
branches;
next	1.21;

1.21
date	2007.12.13.16.08.43;	author mnag;	state Exp;
branches;
next	1.20;

1.20
date	2007.04.06.04.15.43;	author mnag;	state Exp;
branches;
next	1.19;

1.19
date	2007.03.06.21.40.20;	author mnag;	state Exp;
branches;
next	1.18;

1.18
date	2006.09.10.02.44.33;	author mnag;	state Exp;
branches;
next	1.17;

1.17
date	2006.08.26.18.34.46;	author mnag;	state Exp;
branches;
next	1.16;

1.16
date	2006.03.16.02.03.52;	author mnag;	state Exp;
branches;
next	1.15;

1.15
date	2005.12.15.18.31.09;	author mnag;	state Exp;
branches;
next	1.14;

1.14
date	2005.12.14.20.58.35;	author mnag;	state Exp;
branches;
next	1.13;

1.13
date	2005.12.14.20.33.29;	author mnag;	state Exp;
branches;
next	1.12;

1.12
date	2005.09.16.17.58.32;	author mnag;	state Exp;
branches;
next	1.11;

1.11
date	2005.08.31.15.47.23;	author garga;	state Exp;
branches;
next	1.10;

1.10
date	2005.07.31.11.29.10;	author sem;	state Exp;
branches;
next	1.9;

1.9
date	2005.07.13.21.36.36;	author flz;	state Exp;
branches;
next	1.8;

1.8
date	2005.07.06.18.25.55;	author pav;	state Exp;
branches;
next	1.7;

1.7
date	2005.03.01.07.30.34;	author vanilla;	state Exp;
branches;
next	1.6;

1.6
date	2005.02.26.21.44.16;	author pav;	state Exp;
branches;
next	1.5;

1.5
date	2004.07.22.02.03.57;	author ijliao;	state Exp;
branches;
next	1.4;

1.4
date	2004.02.09.11.43.35;	author ale;	state Exp;
branches;
next	1.3;

1.3
date	2003.12.28.09.11.27;	author edwin;	state Exp;
branches;
next	1.2;

1.2
date	2003.11.12.23.46.19;	author edwin;	state Exp;
branches;
next	1.1;

1.1
date	2003.09.03.01.04.11;	author edwin;	state Exp;
branches;
next	;


desc
@@


1.28
log
@- Remove pecl-APC-devel since pecl-APC was updated to 3.1.3p1.
@
text
@# Ports collection makefile for:  pear-APC
# Date created:			  31 August 2003
# Whom:				  Thierry Thomas (<thierry@@pompo.net>)
#
# $FreeBSD: ports/www/pecl-APC-devel/Makefile,v 1.27 2009/03/25 04:18:42 mnag Exp $
#

PORTNAME=	APC
DISTVERSION=	3.0.19
CATEGORIES=	www
MASTER_SITES=	http://pecl.php.net/get/
PKGNAMEPREFIX=	pecl-
EXTRACT_SUFX=	.tgz
DIST_SUBDIR=	PECL

MAINTAINER=	mnag@@FreeBSD.org
COMMENT=	Alternative PHP Cache

USE_PHP=	yes
USE_PHPEXT=	yes
PHP_MODNAME=	apc

SUB_FILES=	pkg-message
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 \
		SPINLOCKS	"Enable spinlocks (experimental)"		off \
		FILEHITS	"Enable per request cache info"			off \
		PHP4_OPT	"Little optimization to PHP4"			off

PORTDOCS=	*

.include <bsd.port.pre.mk>

.if defined(WITH_MMAP)
CONFIGURE_ARGS+=	--enable-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

.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

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>
@


1.27
log
@- Add spinlocks support

PR:		132992
Submitted by:	Gea-Suan Lin <gslin___gslin.org>
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.26
log
@- Update to 3.0.19

PR:		123723
Submitted by:	Wen heping <wenheping___gmail.com>
@
text
@d30 1
d46 4
@


1.25
log
@- Fix FD leak to PHP4 (from pecl-APC CVS)
- Bump PORTREVISION

PS: Maybe fix PR 122717. I need to confirm.
@
text
@d9 1
a9 2
DISTVERSION=	3.0.18
PORTREVISION=	1
@


1.24
log
@- Update to 3.0.18

PR:		122634
Submitted by:	mark burdett <mfburdett___gmail.com>
@
text
@d10 1
@


1.23
log
@- Add FILEHITS option [1]
- Add patch to fix a problem with semaphores [2]
- Bump PORTREVISION

PR:		119390 [1]
Submitted by:	Martin Matuska <mm___FreeBSD.org> [1], Maxim Khitrov <mkhitrov__gmail.com> [2]
@
text
@d9 1
a9 2
DISTVERSION=	3.0.16
PORTREVISION=	1
@


1.22
log
@- Update to 3.0.16
@
text
@d10 1
d31 1
d46 4
@


1.21
log
@- Update to 3.0.15

PR:		117559
Submitted by:	chinsan <chinsan___FreeBSD.org>
@
text
@d9 1
a9 1
DISTVERSION=	3.0.15
@


1.20
log
@- Update to 3.0.14

PR:		111178
Submitted by:	chinsan
@
text
@d9 1
a9 1
DISTVERSION=	3.0.14
@


1.19
log
@- Update to 3.0.13

PR:		109810
Submitted by:	chinsan
@
text
@d9 1
a9 1
DISTVERSION=	3.0.13
@


1.18
log
@- Update to 3.0.12p2
@
text
@d9 1
a9 1
DISTVERSION=	3.0.12p2
@


1.17
log
@- Update to 3.0.11
@
text
@d9 1
a9 1
PORTVERSION=	3.0.11
@


1.16
log
@- Update to 3.0.10
@
text
@d9 1
a9 1
PORTVERSION=	3.0.10
@


1.15
log
@Correct way to check WITH_PHP4_OPT and ${PHP_VER} == 4
@
text
@d9 1
a9 2
PORTVERSION=	3.0.8
PORTREVISION=	1
a73 12
.if ${PHP_VER} == 5
	@@${ECHO_CMD}
	@@${ECHO_CMD} "*** WARNING *** WARNING *** WARNING ***"
	@@${ECHO_CMD}
	@@${ECHO_CMD} "To APC work with PHP >= 5.0.5 you need add"
	@@${ECHO_CMD} "below option in your php.ini"
	@@${ECHO_CMD}
	@@${ECHO_CMD} "auto_globals_jit = Off"
	@@${ECHO_CMD}
	@@${ECHO_CMD} "*** WARNING *** WARNING *** WARNING ***"
	@@${ECHO_CMD}
.endif
@


1.14
log
@More accurate info about auto_globals_jit and PHP version
@
text
@d45 2
a46 1
.if defined(WITH_PHP4_OPT) && ${PHP_VER} == 4
d57 1
a57 1
pre-extract:
d64 1
@


1.13
log
@Fix PHP4 optimization with new apache versions
Bump PORTREVISION
Install apc.php in DOCSDIR
Add message about APC and PHP >= 5.1 [1]

Thanks to:	Rasmus Lerdorf [1]
@
text
@d77 1
a77 1
	@@${ECHO_CMD} "To APC work with PHP >= 5.1 you need add"
@


1.12
log
@Update my email

Approved by: pav (mentor)
@
text
@d10 1
d29 5
a33 3
OPTIONS=	MMAP       "Enable mmap memory support (default: IPC shm)" off \
		SEMAPHORES "Enable sysv IPC semaphores (default: fcntl())" off \
		PHP4_OPT   "Little optimization to PHP4" off
d45 1
a45 2
.if defined(WITH_PHP4_OPT)
.if ${PHP_VER} == 4
d49 5
a53 1
CFLAGS+=	-I${LOCALBASE}/include/apache -DAPC_PHP4_STAT
d56 6
a61 6
IGNORE=	This optimization is only for PHP4. PHP5 or newer does not need it
.endif
.endif

.if !defined(NOPORTDOCS)
PORTDOCS=	*
d67 4
a70 3
	@@${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR}
	@@${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
	@@${INSTALL_DATA} ${WRKSRC}/NOTICE ${DOCSDIR}
d73 12
@


1.11
log
@- Update to 3.0.8

PR:		ports/85525
Submitted by:	maintainer
@
text
@d16 1
a16 1
MAINTAINER=	marcus@@corp.grupos.com.br
@


1.10
log
@- Update to 3.0.6

PR:		ports/84364
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	3.0.6
d30 1
a30 1
		PHP4_OPT   "Little optimization for PHP4" off
@


1.9
log
@- Update to 3.0.3.

PR:		ports/83399
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	3.0.3
@


1.8
log
@- Update to 3.0.2

PR:		ports/83069
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	3.0.2
@


1.7
log
@* Broken with php5
* More OPTIONS

PR:		ports/78223
Submitted by:	maintainer
@
text
@d9 1
a9 2
PORTVERSION=	2.0.4
PORTREVISION=	1
a19 1
USE_PHPIZE=	yes
d30 1
d34 2
a35 2
.if ${PHP_VER} == 5
BROKEN=		This port is not compatible with php${PHP_VER}
d38 2
a39 2
.if !defined(WITHOUT_MMAP)
CONFIGURE_ARGS+=	--enable-mmap
d42 10
a51 2
.if !defined(WITHOUT_SEMAPHORES)
CONFIGURE_ARGS+=	--enable-sem
@


1.6
log
@- Reflect the fact that APC is now a PECL package
- Take maintainership

PR:		ports/78019
Submitted by:	Marcus Grando <marcus@@corp.grupos.com.br>
Repocopy by:	marcus
@
text
@d10 1
d30 8
a37 1
OPTIONS=	MMAP	"Enable mmap"	off
d43 4
d60 1
a60 1
.include <bsd.port.mk>
@


1.5
log
@upgrade to 2.0.4

PR:		69342
Submitted by:	Martin Matuska <martin@@tradex.sk>
@
text
@d10 5
a14 1
CATEGORIES=	www pear
d16 1
a16 1
MAINTAINER=	ports@@FreeBSD.org
a18 3
BUILD_DEPENDS=	${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
RUN_DEPENDS=	${BUILD_DEPENDS}

d21 5
d29 5
a33 2
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
d35 2
a36 3
.if exists(${LOCALBASE}/bin/php-config)
EXT_DIR!=	${LOCALBASE}/bin/php-config --extension-dir | ${SED} -e \
			"s:${PHP_BASE}/::"
d38 2
a39 11
PHP_DIR?=	${LOCALBASE}/etc
PHP_INI=	${PHP_DIR}/php.ini
PLIST_SUB+=	EXTDIR=${EXT_DIR}
DOCS=		CHANGELOG INSTALL NOTICE

post-install-script:
	@@${STRIP_CMD} ${PHP_BASE}/${EXT_DIR}/apc.so
	@@if [ ! -f ${PHP_INI} ]; then \
		${ECHO_MSG} "===>   Creating ${PHP_INI} for PHP" ; \
		${CP} -p ${PHP_INI}-dist ${PHP_INI} ; \
	fi
d42 3
a44 4
.for FILE in ${DOCS}
	@@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
	@@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
d46 1
a46 4
	@@${ECHO_MSG}
	@@${CAT} ${PKGMESSAGE} | \
		${SED} -e "s:/usr/local/etc/php.ini:${PHP_INI}:"
	@@${ECHO_MSG}
d48 1
a48 1
.include <bsd.port.post.mk>
@


1.4
log
@Remove lang/php4/bsd.php.mk and switch every ports depending on PHP to
use Mk/bsd.php.mk.

Approved by:	nork (mentor/implicitly)
@
text
@d9 1
a9 1
PORTVERSION=	2.0
@


1.3
log
@pear-* ports: simplify path to devel/pear-PEAR/Makefile.common

    .include <bsd.port.pre.mk>
    .include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common"

    can be simplified to:

    .include <bsd.port.pre.mk>
    .include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"

    the latter version also doesn't make any assumptions about the
    path of including Makefile

PR:		ports/57152
Submitted by:	Roman Neuhauser <neuhauser@@bellavista.cz>
@
text
@d18 1
a23 1
.include "${PORTSDIR}/lang/php4/bsd.php.mk"
@


1.2
log
@Add the virtual category "pear" to the Makefiles of these ports.

PR:		ports/56582
Submitted by:	edwin@@mavetju.org
Approved by:	portmgr@@freebsd.org
@
text
@d23 2
a24 2
.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common"
@


1.1
log
@New port: www/pear-APC - Alternative PHP Cache.

	This port does not build out of the box, and has been
	requested on the PEAR-DEV mailing list.

	See <http://marc.theaimsgroup.com/?t=106235180900001&;r=1&w=2>.

PR:		ports/56294
Submitted by:	Thierry Thomas <thierry@@pompo.net>
@
text
@d10 1
a10 1
CATEGORIES=	www
@

