207db7eadf
- While I'm here: - Convert to new options helper - Use USE_PHP=apc php-memoize is a PHP extension which transparently caches PHP functions, much like Perl's Memoize module. It comes with the following storage modules which can be enabled at compile time: - memory: Simple per-request module with no dependencies. Since this is a per-request cache, neither TTLs specified in the `memoize()` call or `memoize.default_ttl` are used. - memcached: Uses libmemcached or the memcached PHP extension - apc: Uses the APC PHP extension WWW: http://pecl.php.net/package/memoize PR: ports/190098 Submitted by: Gasol Wu <gasol.wu@gmail.com>
34 lines
907 B
Makefile
34 lines
907 B
Makefile
# Created by: Gasol Wu <gasol.wu@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= memoize
|
|
PORTVERSION= 0.2.0
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://pecl.php.net/get/
|
|
PKGNAMEPREFIX= pecl-
|
|
DIST_SUBDIR= PECL
|
|
|
|
MAINTAINER= gasol.wu@gmail.com
|
|
COMMENT= PHP extension which transparently caches PHP functions
|
|
|
|
LICENSE= PHP301
|
|
|
|
USES= tar:tgz
|
|
USE_PHP= yes
|
|
USE_PHPEXT= yes
|
|
CONFIGURE_ARGS= --enable-memoize
|
|
|
|
OPTIONS_DEFINE= APC MEMCACHED MEMORY
|
|
OPTIONS_DEFAULT=MEMORY
|
|
APC_DESC= Enable memoize APC module
|
|
MEMCACHED_DESC= Enable memcached storage module
|
|
MEMORY_DESC= Enable the memoize memory storage module
|
|
|
|
APC_CONFIGURE_ON= --enable-memoize-apc
|
|
APC_USE= PHP=apc
|
|
MEMCACHED_CONFIGURE_ON= --with-memoize-memcached
|
|
MEMCACHED_BUILD_DEPENDS=libmemcached>=0:${PORTSDIR}/databases/libmemcached
|
|
MEMCACHED_RUN_DEPENDS= libmemcached>=0:${PORTSDIR}/databases/libmemcached
|
|
MEMORY_CONFIGURE_OFF= --disable-memoize-memory
|
|
|
|
.include <bsd.port.mk>
|