c9423137fd
- Add a -shm FLAVOR in addition to the default (mmap), and indicate the difference in DESCR (requested by sthen@) - Make the MESSAGE's instructions true by @sample'ing the module's ini file so it exists (reported by "f5b" and Glen Searle, thanks) - simplify by making better use of the lang/php MODULE ok sthen
61 lines
1.1 KiB
Makefile
61 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.20 2012/01/27 04:02:26 william Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= Alternative PHP Cache
|
|
|
|
DISTNAME= APC-3.1.7
|
|
REVISION= 3
|
|
PKGNAME= pecl-${DISTNAME}
|
|
CATEGORIES= www
|
|
|
|
HOMEPAGE= http://pecl.php.net/package/APC
|
|
|
|
MAINTAINER= William Yodlowsky <william@openbsd.org>
|
|
|
|
# PHP
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= http://pecl.php.net/get/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MODULES= lang/php
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS= --enable-apc
|
|
|
|
FLAVORS= shm
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:L:Mshm}
|
|
CONFIGURE_ARGS+= --disable-apc-mmap
|
|
.endif
|
|
|
|
DESTDIRNAME= INSTALL_ROOT
|
|
|
|
# needs PHP CLI sapi to run
|
|
NO_REGRESS= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
|
|
|
MODPHP_DO_SAMPLE= apc
|
|
MODPHP_DO_PHPIZE= Yes
|
|
|
|
WEBROOT= /var/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>
|