aboutsummaryrefslogtreecommitdiffstats
path: root/databases/pecl-memcached/Makefile
blob: 56f62fec7b6db8f9b71d4f21629223324753d5ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$

PORTNAME=   memcached
PORTVERSION=    3.1.3
CATEGORIES= databases

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    PHP extension for interfacing with memcached via libmemcached library

LICENSE=    PHP30
LICENSE_FILE=   ${WRKSRC}/LICENSE

BUILD_DEPENDS=  libmemcached>=1.0.18:databases/libmemcached
LIB_DEPENDS=    libmemcached.so:databases/libmemcached

OPTIONS_DEFINE= IGBINARY SASL
OPTIONS_DEFAULT=SASL
IGBINARY_DESC=  Binary serializer support

USES=       php:pecl pkgconfig
USE_PHP=    json:build session:build

CONFIGURE_ARGS= --with-libmemcached-dir=${LOCALBASE}

IGBINARY_CONFIGURE_ENABLE=  memcached-igbinary
IGBINARY_USE=       PHP=igbinary:build
SASL_CONFIGURE_ENABLE=  memcached-sasl
SASL_LIB_DEPENDS=   libsasl2.so:security/cyrus-sasl2

.include <bsd.port.mk>