# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           php 1.1

name                php-stomp
categories          php devel
platforms           darwin
maintainers         {ryandesign @ryandesign} openmaintainer
license             PHP-3.01

php.branches        5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3
php.pecl            yes

if {[vercmp ${php.branch} 7] >= 0} {
    version         2.0.2
    revision        0
    checksums       rmd160  43fddc91650ebfe532719ca704c2a4b799139c22 \
                    sha256  b80b4287080846150c845c9e94ad288d01975e67031e3f242a03c70da8b33d2f \
                    size    23609
} else {
    version         1.0.9
    revision        4
    checksums       rmd160  7f7f8b757409e48360c578db7db0fc562b3fbd36 \
                    sha256  7a7d748c6327ef8c6853dcadaedd41b4366ff821b401b11fab7b915cb5246575 \
                    size    23166
}

description         PECL extension of stomp client

long_description    Allows php applications to communicate with any Stomp compliant Message \
                    Brokers through easy object oriented and procedural interfaces.

homepage            http://www.php.net/stomp

if {${name} ne ${subport}} {
    depends_lib-append  port:${php}-openssl
    
    configure.args-append --enable-stomp
    
    use_parallel_build  yes
}
