# -*- 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
platforms               darwin
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
php.pecl                yes

description             A wrapper around libuuid from the ext2utils project.

long_description        ${description}

if {[vercmp ${php.branch} 7.0] >= 0} {
    version             1.2.0
    revision            0
    checksums           rmd160  bccdad687a0b24a2b64ba03fda60d0c696170555 \
                        sha256  5cb834d32fa7d270494aa47fd96e062ef819df59d247788562695fd1f4e470a4 \
                        size    16270
} elseif {[vercmp ${php.branch} 5.3] >= 0} {
    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}
}
