c109ae4c1c
- Maintenance update of XCache, also tested by myself. from me: - adjust for /var/www/conf/php5 symlinks - add re2c as BUILD_DEPENDS, configure picks it up if installed ok brad@ (maintainer)
61 lines
1.4 KiB
Makefile
61 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.4 2008/03/23 21:36:20 sthen Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= fast and stable PHP opcode cache
|
|
|
|
VERSION= 1.2.2
|
|
DISTNAME= xcache-${VERSION}
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://xcache.lighttpd.net/pub/Releases/${VERSION}/
|
|
|
|
HOMEPAGE= http://xcache.lighttpd.net/
|
|
|
|
# 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} \
|
|
::www/php5/core \
|
|
::devel/re2c
|
|
RUN_DEPENDS+= ::www/php5/core
|
|
|
|
USE_LIBTOOL= Yes
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS+= --enable-xcache
|
|
CONFIGURE_ENV= AUTOCONF_VERSION=${AUTOCONF_VERSION}
|
|
|
|
PREFIX= /var/www
|
|
DESTDIRNAME= INSTALL_ROOT
|
|
|
|
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
|
|
${INSTALL_DATA_DIR} ${PREFIX}/conf/php5.sample
|
|
cd ${WRKSRC}/admin && ${INSTALL_DATA} * ${PREFIX}/xcache/admin
|
|
${INSTALL_DATA} ${WRKSRC}/xcache.ini ${PREFIX}/conf/php5.sample/xcache.ini.dist
|
|
|
|
.if ${FLAVOR:L:Mcoverager}
|
|
${INSTALL_DATA_DIR} ${PREFIX}/xcache/coverager
|
|
cd ${WRKSRC}/coverager && ${INSTALL_DATA} * ${PREFIX}/xcache/coverager
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|