# -*- 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-uuid
categories-append       net www
maintainers             {ryandesign @ryandesign} openmaintainer
license                 LGPL-2.1+

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             A wrapper around libuuid from the ext2utils project.

long_description        ${description}

if {[vercmp ${php.branch} >= 7.0]} {
    version             1.2.1
    revision            0
    checksums           rmd160  0f91762096c3658f9914c1ee9a4891050a2549b8 \
                        sha256  2235c8584ca8911ce5512ebf791e5bb1d849c323640ad3e0be507b00156481c7 \
                        size    16903
} elseif {[vercmp ${php.branch} >= 5.3]} {
    version             1.0.5
    revision            1
    checksums           rmd160  c9e5fdfe7ccb56c19d4309cadac4eeaa26f8b463 \
                        sha256  f762c53cfdc408f015384188c174b503a734b59d7be82738b89ec3ffd3e6b8f4 \
                        size    14946
}

use_parallel_build      yes

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

    configure.args      --with-uuid=${prefix}
}
