ports/devel/php-memoize/Makefile
Kubilay Kocak b6450d4ca7 databases/libmemcached: Update to 1.0.18 and much more
- Update to 1.0.18 and pkg-plist accordingly
- Add LICENSE (BSD3CLAUSE) and LICENSE_FILE
- Add TEST_DEPENDS and regression-test target
- Perl is not required, remove USE_PERL and from USES
- Split LDFLAGS from CONFIGURE_ENV, they're already set there
- Add libmemcachedprotocol to CONFIGURE_ARGS (Now default: off)
- Add OPTIONS for hash functions, debug and dtrace
- pkg-descr: Update WWW: URL
- Add patches for:
  * alloca.h include not found on FreeBSD
  * cinttypes include location
  * clang compatibility
- Strip shared libraries manually since upstream install-strip target is
  fail

Changes:

  https://launchpad.net/libmemcached/+announcements

[1] https://bugs.launchpad.net/libmemcached/+bug/1245562
[2] https://bugs.launchpad.net/libmemcached/+bug/1400560

Approved by:	Mikhail Tsatsenko <m.tsatsenko@gmail.com> (maintainer, via email)
2014-12-11 05:26:39 +00:00

48 lines
1.1 KiB
Makefile

# Created by: Gasol Wu <gasol.wu@gmail.com>
# $FreeBSD$
PORTNAME= memoize
PORTVERSION= 0.2.0b1
PORTREVISION= 2
CATEGORIES= devel
PKGNAMEPREFIX= php-
MAINTAINER= gasol.wu@gmail.com
COMMENT= PHP extension which transparently caches PHP functions
USE_GITHUB= yes
GH_ACCOUNT= arraypad
GH_PROJECT= ${UNIQUENAME}
GH_TAGNAME= v${PORTVERSION}
GH_COMMIT= cff0a58
USE_PHP= yes
USE_PHPEXT= yes
USE_PHPIZE= yes
USE_PHP_BUILD= 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
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MAPC}
CONFIGURE_ARGS+= --enable-memoize-apc
BUILD_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/apc.so:${PORTSDIR}/www/pecl-APC
.endif
.if ${PORT_OPTIONS:MMEMCACHED}
CONFIGURE_ARGS+= --with-memoize-memcached
BUILD_DEPENDS+= libmemcached>0:${PORTSDIR}/databases/libmemcached
RUN_DEPENDS+= libmemcached>0:${PORTSDIR}/databases/libmemcached
.endif
.if empty(PORT_OPTIONS:MMEMORY)
CONFIGURE_ARGS+= --disable-memoize-memory
.endif
.include <bsd.port.post.mk>