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

name                    php-yaz
categories-append       net databases devel
platforms               darwin
maintainers             {ryandesign @ryandesign} openmaintainer
license                 PHP

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

description             PHP/PECL extension for the Z39.50 protocol

long_description        This extension implements a Z39.50 client \
                        for PHP using the YAZ toolkit.

if {[vercmp ${php.branch} 4.3] >= 0} {
    version             1.2.3
    revision            0
    checksums           rmd160  8e5a4aba9cfe1d5de4c6e3136988344b1d4e538a \
                        sha256  b0176fc66f4ced0e90f26a587a4509c4b3fe532da8a1f10fe91188a4c7a5a43d \
                        size    20059
}

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