openbsd-ports/www/pecl-APC/Makefile

39 lines
728 B
Makefile
Raw Normal View History

2013-03-11 07:35:43 -04:00
# $OpenBSD: Makefile,v 1.28 2013/03/11 11:44:47 espie Exp $
COMMENT= Alternative PHP Cache
DISTNAME= APC-3.1.9
PKGNAME= pecl-${DISTNAME}
2012-09-05 05:24:13 -04:00
REVISION= 3
MAINTAINER= William Yodlowsky <william@openbsd.org>
# PHP
PERMIT_PACKAGE_CDROM= Yes
2012-04-19 17:30:26 -04:00
MODULES= lang/php/pecl
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --enable-apc
FLAVORS= shm
FLAVOR?=
.if ${FLAVOR:Mshm}
CONFIGURE_ARGS+= --disable-apc-mmap
.endif
WEBROOT= /var/www
SUBST_VARS= WEBROOT
post-configure:
@perl -pi -e "s,-rpath \\$$\\(phplibdir\\),-rpath ${LOCALBASE}/lib,g" \
${WRKSRC}/Makefile
pre-install:
2011-07-08 20:04:11 -04:00
@${INSTALL_DATA_DIR} ${WRKINST}/${WEBROOT}/pecl-APC
@${INSTALL_DATA} ${WRKSRC}/apc.php ${WRKSRC}/INSTALL \
2011-07-08 20:04:11 -04:00
${WRKINST}/${WEBROOT}/pecl-APC
.include <bsd.port.mk>