1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/www/eaccelerator/Makefile
Alex Dupre 5e43a0554b Update to 0.9.5.1 release.
PR:		ports/113597
Submitted by:	mm
2007-06-20 05:57:25 +00:00

63 lines
1.5 KiB
Makefile

# New ports collection makefile for: eaccelerator
# Date created: Sat Mar 1 13:55:55 CET 2003
# Whom: Alex Dupre <sysadmin@alexdupre.com>
#
# $FreeBSD$
#
PORTNAME= eaccelerator
DISTVERSION= 0.9.5.1
CATEGORIES= www
MASTER_SITES= http://bart.eaccelerator.net/source/${DISTVERSION}/
MAINTAINER= ale@FreeBSD.org
COMMENT= An opcode cache for PHP with encoder and loader
USE_PHP= session
USE_PHPIZE= yes
USE_PHP_BUILD= yes
CONFIGURE_ARGS= --enable-eaccelerator=shared \
--with-eaccelerator-sessions \
--with-eaccelerator-userid=www
USE_BZIP2= yes
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
PORTDOCS= *
.include <bsd.port.pre.mk>
.if ${PHP_VER} == 5
CONFIGURE_ARGS+= --without-eaccelerator-encoder
PLIST_SUB+= ENCODER="@comment "
.else
PLIST_SUB+= ENCODER=""
post-build:
@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g; s|0777|0755|g" \
${WRKSRC}/encoder.php > ${WRKSRC}/encoder
.endif
do-install:
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
${INSTALL_DATA} ${WRKSRC}/modules/${PORTNAME}.so \
${PREFIX}/lib/php/${PHP_EXT_DIR}
.if ${PHP_VER} == 4
${INSTALL_SCRIPT} ${WRKSRC}/encoder ${PREFIX}/bin
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.ini ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/control.php ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/dasm.php ${EXAMPLESDIR}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>