# -*- 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-propro
maintainers         {ryandesign @ryandesign} openmaintainer
license             BSD

# Not possible to make PHP 8 compatible: https://github.com/m6w6/ext-propro/pull/5
php.branches        5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4
php.pecl            yes

if {[vercmp ${php.branch} >= 7.0]} {
    version         2.1.0
    revision        0
    checksums       rmd160  133bc76be7a0b9edbcbc1a6a5be23a9e9b5bf112 \
                    sha256  7bba0653d90cd8f61816e13ac6c0f7102b4a16dc4c4e966095a121eeb4ae8271 \
                    size    14253
} else {
    version         1.0.2
    revision        0
    checksums       rmd160  7012fc74961c31ce47f360e0e175d48679d71c59 \
                    sha256  6b4e785adcc8378148c7ad06aa82e71e1d45c7ea5dbebea9ea9a38fee14e62e7 \
                    size    13393
}

description         a reusable property proxy API

long_description    ${description}

if {${name} ne ${subport}} {
    configure.args  --enable-propro
}
