# -*- 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-uploadprogress
categories      php www devel
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 7.4 8.0 8.1 8.2 8.3
php.pecl        yes

description     An extension to track progress of a file upload.

long_description \
    An extension to track progress of a file upload. It is only known to \
    work on Apache with mod_php, other SAPI implementations unfortunately \
    still have issues.

if {[vercmp ${php.branch} >= 7.2]} {
    version             2.0.2
    revision            0
    checksums           rmd160  2ab73c7a6024e7f5108c2584435d0d6129580b0a \
                        sha256  2c63ce727340121044365f0fd83babd60dfa785fa5979fae2520b25dad814226 \
                        size    19969
} elseif {[vercmp ${php.branch} >= 5.2]} {
    version             1.1.4
    revision            0
    checksums           rmd160  a5a5618abed2a9344afc2b4e0b6968bdc4f7a3dd \
                        sha256  9ba0f010f78889b8d69c5c643a9c920d1e140cd1d06817b8bf4ee76f996138c0 \
                        size    19154
}

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

    use_parallel_build  yes

    notes "
${subport} is only known to work with the Apache handler; its use with\
other SAPIs is not supported.
"
}
