openbsd-ports/www/xcache/Makefile

68 lines
1.5 KiB
Makefile
Raw Normal View History

2013-03-11 07:35:43 -04:00
# $OpenBSD: Makefile,v 1.19 2013/03/11 11:44:50 espie Exp $
SHARED_ONLY= Yes
COMMENT= fast and stable PHP opcode cacher
VERSION= 2.0.1
DISTNAME= xcache-${VERSION}
CATEGORIES= www
MASTER_SITES= http://xcache.lighttpd.net/pub/Releases/${VERSION}/
HOMEPAGE= http://xcache.lighttpd.net/
2009-10-17 12:22:21 -04:00
MAINTAINER= Brad Smith <brad@comstyle.com>
# BSD
PERMIT_PACKAGE_CDROM= Yes
AUTOCONF_VERSION= 2.59
2011-07-08 18:52:23 -04:00
MODULES= lang/php
BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS} \
2012-05-26 05:22:18 -04:00
devel/re2c>=0.13.4 \
devel/gindent
2011-07-08 18:52:23 -04:00
WEBROOT= /var/www
SUBST_VARS= WEBROOT
USE_LIBTOOL= Yes
LIBTOOL_FLAGS= --tag=disable-static
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --enable-xcache
CONFIGURE_ENV= AUTOCONF_VERSION=${AUTOCONF_VERSION}
DESTDIRNAME= INSTALL_ROOT
2013-03-11 07:35:43 -04:00
NO_TEST= Yes
FLAVORS= coverager
FLAVOR?=
.if ${FLAVOR:Mcoverager}
CONFIGURE_ARGS+= --enable-xcache-coverager
.endif
2011-07-08 18:52:23 -04:00
MODPHP_DO_PHPIZE= Yes
MODPHP_DO_SAMPLE= xcache
MESSAGE= ${PKGDIR}/MESSAGE
2012-05-26 05:22:18 -04:00
post-extract:
@ln -sf ${LOCALBASE}/bin/gindent ${WRKDIR}/bin/indent
post-install:
${INSTALL_DATA_DIR} ${WRKINST}${WEBROOT}/xcache
${INSTALL_DATA_DIR} ${WRKINST}${WEBROOT}/xcache/admin
2011-07-08 18:52:23 -04:00
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/php-${MODPHP_VERSION}
cd ${WRKSRC}/admin && ${INSTALL_DATA} * ${WRKINST}${WEBROOT}/xcache/admin
2011-07-08 18:52:23 -04:00
${INSTALL_DATA} ${WRKSRC}/xcache.ini \
${PREFIX}/share/examples/php-${MODPHP_VERSION}
.if ${FLAVOR:Mcoverager}
${INSTALL_DATA_DIR} ${WRKINST}${WEBROOT}/xcache/coverager
cd ${WRKSRC}/coverager && ${INSTALL_DATA} * ${WRKINST}${WEBROOT}/xcache/coverager
.endif
.include <bsd.port.mk>