1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/www/xcache/Makefile
2006-12-13 14:55:33 +00:00

74 lines
1.9 KiB
Makefile

# New ports collection makefile for: xcache
# Date created: 28 May 2006
# Whom: Alex Dupre <ale@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= xcache
DISTVERSION= 1.2.0
CATEGORIES= www
MASTER_SITES= http://210.51.190.228/pub/XCache/Releases/ \
MAINTAINER= ale@FreeBSD.org
COMMENT= A fast and stable php opcode cacher
USE_BZIP2= yes
USE_PHP= yes
USE_PHPIZE= yes
CONFIGURE_ARGS= --enable-xcache=shared
OPTIONS= COVERAGER "Enable code coverage dumper" off
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
WRKSRC= ${WRKDIR}/${PORTNAME}
ADMINFILES= common-en.lang.php common-zh-simplified-utf-8.lang.php \
common-zh-traditional-utf-8.lang.php common.php config.php.example \
help-en.lang.php help-zh-simplified-utf-8.lang.php \
help-zh-traditional-utf-8.lang.php help.php index.php \
tablesort.js xcache.css xcache.php xcache.tpl.php
COVERAGERFILES= common-en.lang.php common-zh-simplified-gb2312.lang.php \
common-zh-simplified-utf-8.lang.php common.php config.php.example \
coverager.css coverager.php coverager.tpl.php index.php
.include <bsd.port.pre.mk>
.if defined(WITH_COVERAGER)
CONFIGURE_ARGS+=--enable-xcache-coverager
PLIST_SUB+= COVERAGER=""
.else
PLIST_SUB+= COVERAGER="@comment "
.endif
post-build:
@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|' \
${WRKSRC}/xcache.ini
do-install:
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
${INSTALL_DATA} ${WRKSRC}/modules/${PORTNAME}.so \
${PREFIX}/lib/php/${PHP_EXT_DIR}
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/xcache.ini \
${EXAMPLESDIR}
post-install:
@${MKDIR} ${EXAMPLESDIR}/admin
.for f in ${ADMINFILES}
${INSTALL_DATA} ${WRKSRC}/admin/${f} ${EXAMPLESDIR}/admin
.endfor
.if defined(WITH_COVERAGER)
@${MKDIR} ${EXAMPLESDIR}/coverager
.for f in ${COVERAGERFILES}
${INSTALL_DATA} ${WRKSRC}/coverager/${f} ${EXAMPLESDIR}/coverager
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>