# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           php 1.1

name                php-lzf
categories          php devel
platforms           darwin
maintainers         {ryandesign @ryandesign} openmaintainer
license             PHP-3.01

php.branches        5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
php.pecl            yes

description         Handles LZF compression / decompression.

long_description    ${description}

if {[vercmp ${php.branch} 7.2] >= 0} {
    version         1.7.0
    revision        0
    checksums       rmd160  1d1b2b4106026b0182c9eb411a6500864a54551d \
                    sha256  f9a51510ab52da51c2b39ba9329036247a3784b3a32788cbf199326b90f8bc78 \
                    size    18267
} elseif {[vercmp ${php.branch} 4.0] >= 0} {
    version         1.6.8
    revision        0
    checksums       rmd160  6e3577eb73fcd3e91ea3245f5a4bf09d1fcb87fd \
                    sha256  8e1c2ed211439a78f6efb80116a1fb0bf24aec2f659e90669b8f03ed8142f589 \
                    size    18071
}

distname            LZF-${version}

configure.args-append --enable-lzf

use_parallel_build  yes
