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

epoch                   1
name                    php-swoole
categories-append       net devel
platforms               darwin
maintainers             {ryandesign @ryandesign} openmaintainer
license                 Apache-2

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

if {[vercmp ${php.branch} 7] >= 0} {
    version             2.1.3
    revision            0
    checksums           rmd160  44f46102a220fcde458e10fd5d8cc0f9198e45ef \
                        sha256  84a3af11d3424224c5814e67765a5a5687710a156bc9ad6ec8d9382452568c82 \
                        size    830565
} else {
    version             1.10.4
    revision            0
    checksums           rmd160  7b0a1ffd4c65de73c57be0dae42ba86d3aa9ea85 \
                        sha256  015121fb9439ec92e23ddd99d61481ab3aacbec2beb678e2e726f1b5b699913b \
                        size    729676
}

description             an event-driven asynchronous & concurrent & coroutine networking engine with high performance for PHP

long_description        ${name} is ${description}.

if {${name} ne ${subport}} {
    depends_lib-append  port:zlib

    compiler.blacklist  *gcc-4.0 *gcc-4.2

    use_parallel_build  yes
}