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

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             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} >= 5.0]} {
    version             1.2.4
    revision            0
    checksums           rmd160  f2ffec070b7a8f99da3d3deb5857160801ac40fe \
                        sha256  f35572c7fa3e9d0f52a60d34ed0b90da67f972d56c202ccd7c2272ab0ad24088 \
                        size    20204
}

if {${name} ne ${subport}} {
    depends_build-append \
                        path:bin/pkg-config:pkgconfig
    depends_lib-append  port:re2c port:yaz
}
