# -*- 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
# $Id: Portfile 148002 2016-04-24 11:01:07Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           php 1.1

name                php-APCu
categories          php devel
platforms           darwin
maintainers         ryandesign
license             PHP-3.01

php.branches        5.3 5.4 5.5 5.6 7.0
php.pecl            yes

if {[vercmp ${php.branch} 7] < 0} {
    version         4.0.11
    revision        0
    checksums       rmd160  506c1a4202c66c0d87aba496fe8523117925b157 \
                    sha256  454f302ec13a6047ca4c39e081217ce5a61bbea815aec9c1091fb849e70b4d00
} else {
    version         5.1.3
    revision        0
    checksums       rmd160  c60bf6e3a9c9982750e2c0e0d76ed2dfae49fc6d \
                    sha256  1582c323d31529c91edc11dcb956ee53660b37e49387d0d609d79d57224a7c30
}

description         APC User Cache

long_description    APCu contains the user-level functionality from APC

if {${name} ne ${subport}} {
    conflicts       ${php}-APC ${php}-eaccelerator ${php}-xcache

    distname        apcu-${version}

    configure.args-append --enable-apcu-spinlocks

    use_parallel_build  yes
}
