freebsd-ports/databases/pecl-memcached/Makefile
Bryan Drewery 386533630c - Update to 2.1.0 [1]
- Trim header
- Convert to new options framework
- Remove use of bsd.pre.port.mk

PR:		ports/173099 [1]
Submitted by:	John Chen <johnpupu@gmail.com> [1]
Approved by:	Gea-Suan Lin <gslin@gslin.org> (maintainer)
Feature safe:	yes
2012-11-04 13:51:14 +00:00

39 lines
1 KiB
Makefile

# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$
PORTNAME= memcached
PORTVERSION= 2.1.0
CATEGORIES= databases
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
EXTRACT_SUFX= .tgz
DIST_SUBDIR= PECL
MAINTAINER= gslin@gslin.org
COMMENT= PHP extension for interfacing with memcached via libmemcached library
LICENSE= PHP30
BUILD_DEPENDS= ${LOCALBASE}/bin/pear:${PORTSDIR}/devel/pear
LIB_DEPENDS= memcached:${PORTSDIR}/databases/libmemcached
RUN_DEPENDS= ${LOCALBASE}/bin/pear:${PORTSDIR}/devel/pear
PHP_MODNAME= memcached
USE_PHP= json session
USE_PHPEXT= yes
USE_PHPIZE= yes
USE_PHP_BUILD= yes
CONFIGURE_ARGS+=--with-libmemcached-dir=${LOCALBASE}
OPTIONS_DEFINE= IGBINARY
IGBINARY_DESC= Binary serializer support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MIGBINARY}
CONFIGURE_ARGS+=--enable-memcached-igbinary
BUILD_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/igbinary.so:${PORTSDIR}/converters/igbinary
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/igbinary.so:${PORTSDIR}/converters/igbinary
.endif
.include <bsd.port.mk>