# Created by: Benedikt Niessen <ports@niessen.ch>
# $FreeBSD: head/databases/php56-redis/Makefile 390794 2015-06-28 16:02:34Z antoine $
# $MidnightBSD: trunk/databases/php56-redis/Makefile 20624 2015-11-01 17:02:28Z laffer1 $

PORTNAME=	redis
PORTVERSION=	2.2.5
CATEGORIES=	databases
PKGNAMEPREFIX=	php56-

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	PHP5 extension for Redis

LICENSE=	php

GITVERSION=	0f0661e

USE_PHP=	session
USE_PHP_BUILD=	yes
USE_PHPEXT=	yes
PHP_DEFAULT=	5.6

USE_GITHUB=	yes
GH_ACCOUNT=	nicolasff
GH_PROJECT=	phpredis

PHP_MODNAME=	redis

OPTIONS_DEFINE=	IGBINARY
IGBINARY_DESC=	Build with Igbinary serializer

.include <bsd.mport.options.mk>

.if ${PORT_OPTIONS:MIGBINARY}
USE_PHP+=	igbinary
CONFIGURE_ARGS+=--enable-redis-igbinary
.else
CONFIGURE_ARGS+=--disable-redis-igbinary
.endif

.include <bsd.port.mk>
