# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 101149 2013-01-05 11:12:33Z pixilla@macports.org $

PortSystem              1.0
PortGroup               php 1.1

name                    php-memcached
version                 2.1.0
categories-append       net devel
platforms               darwin freebsd openbsd
maintainers             ryandesign openmaintainer
license                 PHP-3

php.branches            5.3 5.4 5.5
php.pecl                yes

description             PHP bindings for memcache

long_description        Memcached is a caching daemon designed especially for \
                        dynamic web applications to decrease database load by storing objects in memory. This extension allows you \
                        to work with memcached through handy OO and \
                        procedural interfaces.

checksums               rmd160  3b4159bcfac78288a93cb8b8194fb28643abd643 \
                        sha256  bc4940015be74f47908d410d7b55e10a3d5bf65674036d944c73558227fcc4af

if {${name} != ${subport}} {
    depends_lib-append      port:libmemcached port:zlib
    
    configure.args-append   --with-libmemcached-dir=${prefix} \
                            --with-zlib-dir=${prefix}
    
    variant igbinary description {enable igbinary serialization extension} {
        depends_lib-append      port:${php}-igbinary
        configure.args-append   --enable-memcached-igbinary
    }
}
