# -*- 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

PortSystem      1.0
PortGroup       muniversal 1.0
PortGroup       php 1.1

name            php-mongo
version         1.6.16
revision        3
categories      php databases devel
license         Apache-2
platforms       darwin
maintainers     {ryandesign @ryandesign} openmaintainer

php.branches    5.3 5.4 5.5 5.6
php.pecl        yes

description     Mongo Database Driver

long_description \
    This package provides an interface for communicating with the Mongo \
    database in PHP.

checksums       rmd160  5ab00684c1077e7567937194096d0ff20789c6a0 \
                sha256  c061ebbeb6618568a71d7a6a9d7a31a34fe107f09c8c01a43c934fbed0665457 \
                size    210341

if {${name} ne ${subport}} {
    depends_lib-append      port:cyrus-sasl2 \
                            path:lib/libssl.dylib:openssl

    patchfiles-append       patch-config.m4.diff

    configure.args-append   --enable-mongo \
                            --with-openssl-dir=${prefix} \
                            --with-mongo-sasl=${prefix}
}
