2011-06-16 16:24:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2011/06/16 20:24:43 sthen 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
|
|
|
|
2011-06-16 16:24:43 -04:00
|
|
|
VERSION= 1.3.2
|
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
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
AUTOCONF_VERSION= 2.59
|
|
|
|
|
|
|
|
BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS} \
|
2010-11-22 03:36:47 -05:00
|
|
|
www/php5/core \
|
|
|
|
devel/re2c>=0.13.4
|
|
|
|
RUN_DEPENDS+= www/php5/core
|
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}
|
|
|
|
|
|
|
|
PREFIX= /var/www
|
2008-01-04 12:48:33 -05:00
|
|
|
DESTDIRNAME= INSTALL_ROOT
|
2007-07-23 14:57:07 -04:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
FLAVORS= coverager
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mcoverager}
|
|
|
|
CONFIGURE_ARGS+= --enable-xcache-coverager
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${LOCALBASE}/bin/phpize
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/xcache
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/xcache/admin
|
2008-03-23 17:36:20 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/conf/php5.sample
|
2007-07-23 14:57:07 -04:00
|
|
|
cd ${WRKSRC}/admin && ${INSTALL_DATA} * ${PREFIX}/xcache/admin
|
2008-03-23 17:36:20 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/xcache.ini ${PREFIX}/conf/php5.sample/xcache.ini.dist
|
2007-07-23 14:57:07 -04:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mcoverager}
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/xcache/coverager
|
|
|
|
cd ${WRKSRC}/coverager && ${INSTALL_DATA} * ${PREFIX}/xcache/coverager
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|