# -*- 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} {mathiesen.info:macintosh BjarneDMat}
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 8.4 8.5
php.pecl                yes

description             A wrapper around libuuid from the ext2utils project.

long_description        ${description}

if {[vercmp ${php.branch} >= 7.0]} {
    version             1.3.0
    revision            0
    checksums           rmd160  4d7cfa161e193436850b48e3579c6156694fc2ad \
                        sha256  b7af055e2c409622f8c5e6242d1c526c00e011a93c39b10ca28040b908da3f37 \
                        size    17385
} 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}
}
