2013-03-11 07:35:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.19 2013/03/11 11:44:50 espie Exp $
|
2007-07-23 14:57:07 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
2009-09-02 07:57:31 -04:00
|
|
|
COMMENT= fast and stable PHP opcode cacher
|
2007-07-23 14:57:07 -04:00
|
|
|
|
2012-09-11 19:41:43 -04:00
|
|
|
VERSION= 2.0.1
|
2007-07-23 14:57:07 -04:00
|
|
|
DISTNAME= xcache-${VERSION}
|
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://xcache.lighttpd.net/pub/Releases/${VERSION}/
|
|
|
|
|
2008-03-23 17:36:20 -04:00
|
|
|
HOMEPAGE= http://xcache.lighttpd.net/
|
2007-07-23 14:57:07 -04:00
|
|
|
|
2009-10-17 12:22:21 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
|
|
|
|
2007-07-23 14:57:07 -04:00
|
|
|
# BSD
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
|
|
|
AUTOCONF_VERSION= 2.59
|
|
|
|
|
2011-07-08 18:52:23 -04:00
|
|
|
MODULES= lang/php
|
|
|
|
|
2007-07-23 14:57:07 -04:00
|
|
|
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
|
2007-07-23 14:57:07 -04:00
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS+= --enable-xcache
|
|
|
|
CONFIGURE_ENV= AUTOCONF_VERSION=${AUTOCONF_VERSION}
|
|
|
|
|
2008-01-04 12:48:33 -05:00
|
|
|
DESTDIRNAME= INSTALL_ROOT
|
2007-07-23 14:57:07 -04:00
|
|
|
|
2013-03-11 07:35:43 -04:00
|
|
|
NO_TEST= Yes
|
2007-07-23 14:57:07 -04:00
|
|
|
|
|
|
|
FLAVORS= coverager
|
|
|
|
FLAVOR?=
|
|
|
|
|
2013-02-09 09:49:50 -05:00
|
|
|
.if ${FLAVOR:Mcoverager}
|
2007-07-23 14:57:07 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-xcache-coverager
|
|
|
|
.endif
|
|
|
|
|
2011-07-08 18:52:23 -04:00
|
|
|
MODPHP_DO_PHPIZE= Yes
|
2011-08-21 05:26:58 -04:00
|
|
|
MODPHP_DO_SAMPLE= xcache
|
|
|
|
MESSAGE= ${PKGDIR}/MESSAGE
|
2007-07-23 14:57:07 -04:00
|
|
|
|
2012-05-26 05:22:18 -04:00
|
|
|
post-extract:
|
|
|
|
@ln -sf ${LOCALBASE}/bin/gindent ${WRKDIR}/bin/indent
|
|
|
|
|
2007-07-23 14:57:07 -04:00
|
|
|
post-install:
|
2012-09-11 19:41:43 -04:00
|
|
|
${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}
|
2012-09-11 19:41:43 -04:00
|
|
|
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}
|
2007-07-23 14:57:07 -04:00
|
|
|
|
2013-02-09 09:49:50 -05:00
|
|
|
.if ${FLAVOR:Mcoverager}
|
2012-09-11 19:41:43 -04:00
|
|
|
${INSTALL_DATA_DIR} ${WRKINST}${WEBROOT}/xcache/coverager
|
|
|
|
cd ${WRKSRC}/coverager && ${INSTALL_DATA} * ${WRKINST}${WEBROOT}/xcache/coverager
|
2007-07-23 14:57:07 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|