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

php.branches        5.2 5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3
php.pecl            yes

if {[vercmp ${php.branch} 4.3] >= 0} {
    epoch           3
    version         1.15.4
    revision        0
    checksums       rmd160  19a63b45037f972687cd5a02c0e5ad5de2427195 \
                    sha256  0a32dd0e90f4b36e6d6acbcbe08d2eb033cde1dc6a8384b89d90631b05bbb099 \
                    size    268277
}

description         PHP zip functions

long_description    This PHP extension lets you create, read and modify zip \
                    files.

if {${name} ne ${subport}} {
    depends_lib-append      port:libzip \
                            port:zlib

    configure.args-append   --enable-zip \
                            --with-libzip=${prefix} \
                            --with-zlib-dir=${prefix}
}