# -*- 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-yaml
categories-append   devel
platforms           darwin
maintainers         {ryandesign @ryandesign} openmaintainer
license             PHP-3.01

php.branches        5.3 5.4 5.5 5.6
php.pecl            yes

if {[vercmp ${php.branch} 7] >= 0} {
} else {
    version         1.3.1
    revision        0
    checksums       rmd160  1fc1164435f9709eafc51b179b7c3ccca05928c3 \
                    sha256  18c9455e731f33770106ce971e7d4af4b95c53078a29b93669809a669f7e75b9
}

description         a PHP interface to the YAML parsing library

long_description    ${description}

if {${name} ne ${subport}} {
    depends_lib-append  port:libyaml
    
    configure.args      --with-yaml=${prefix}
    
    use_parallel_build  yes
}
