47adc4564a
as a bonus, passes more regress tests and the 2 patches (which were from upstream) are rolled in. ok dlg sthen Thanks to dlg for the fix.
38 lines
725 B
Makefile
38 lines
725 B
Makefile
# $OpenBSD: Makefile,v 1.31 2013/08/15 02:48:02 william Exp $
|
|
|
|
COMMENT= Alternative PHP Cache
|
|
|
|
DISTNAME= APC-3.1.13
|
|
PKGNAME= pecl-${DISTNAME}
|
|
|
|
MAINTAINER= William Yodlowsky <william@openbsd.org>
|
|
|
|
# PHP
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
MODULES= lang/php/pecl
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS= --enable-apc
|
|
|
|
FLAVORS= shm
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:Mshm}
|
|
CONFIGURE_ARGS+= --disable-apc-mmap
|
|
.endif
|
|
|
|
WEBROOT= ${VARBASE}/www
|
|
SUBST_VARS= WEBROOT
|
|
|
|
post-configure:
|
|
@perl -pi -e "s,-rpath \\$$\\(phplibdir\\),-rpath ${LOCALBASE}/lib,g" \
|
|
${WRKSRC}/Makefile
|
|
|
|
pre-install:
|
|
@${INSTALL_DATA_DIR} ${WRKINST}/${WEBROOT}/pecl-APC
|
|
@${INSTALL_DATA} ${WRKSRC}/apc.php ${WRKSRC}/INSTALL \
|
|
${WRKINST}/${WEBROOT}/pecl-APC
|
|
|
|
.include <bsd.port.mk>
|