diff options
Diffstat (limited to 'www/xcache/Makefile')
-rw-r--r-- | www/xcache/Makefile | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/www/xcache/Makefile b/www/xcache/Makefile index 74fa894cf603..f571b64b7d80 100644 --- a/www/xcache/Makefile +++ b/www/xcache/Makefile @@ -6,9 +6,9 @@ # PORTNAME= xcache -DISTVERSION= 1.0-rc +DISTVERSION= 1.0 CATEGORIES= www -MASTER_SITES= http://210.51.190.228/pub/XCache/ +MASTER_SITES= http://210.51.190.228/pub/XCache/Releases/ MAINTAINER= ale@FreeBSD.org COMMENT= A fast and stable php opcode cacher @@ -18,11 +18,26 @@ 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} +.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 \ @@ -34,12 +49,22 @@ do-install: post-install: @${MKDIR} ${EXAMPLESDIR}/admin ${INSTALL_DATA} ${WRKSRC}/admin/config.php.example \ + ${WRKSRC}/admin/help.php \ ${WRKSRC}/admin/index.php \ ${WRKSRC}/admin/tablesort.js \ ${WRKSRC}/admin/xcache.css \ ${WRKSRC}/admin/xcache.php \ ${WRKSRC}/admin/xcache.tpl.php \ ${EXAMPLESDIR}/admin +.if defined(WITH_COVERAGER) + @${MKDIR} ${EXAMPLESDIR}/coverager + ${INSTALL_DATA} ${WRKSRC}/coverager/config.php.example \ + ${WRKSRC}/coverager/coverager.css \ + ${WRKSRC}/coverager/coverager.php \ + ${WRKSRC}/coverager/coverager.tpl.php \ + ${WRKSRC}/coverager/index.php \ + ${EXAMPLESDIR}/coverager +.endif @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |