# -*- 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-raphf
platforms           darwin
maintainers         ryandesign openmaintainer
license             BSD

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.0.0
    revision        0
    checksums       rmd160  57a3441c78769d652b19dbc14ecb959183cb7adb \
                    sha256  95a59ea0dc3fc172805a6acd8327b122dd159b0a85b253826166457a05efa411
} else {
    version         1.1.2
    revision        0
    checksums       rmd160  6c760c788040e84cd1dedeb118062552ba83397f \
                    sha256  d35a49672e72d0e03751385e0b8fed02aededcacc5e3ec27c98a5849720483a7
}

description         a reusable persistent handle and resource factory API

long_description    ${description}

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