# -*- 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-scrypt
categories-append       security
maintainers             {ryandesign @ryandesign} openmaintainer
license                 BSD

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
php.pecl                yes

if {[vercmp ${php.branch} 7.0] >= 0} {
    version             2.0.1
    revision            0
    checksums           rmd160  4ed7a370ae0ce3e2c607a9c12fabb159e1378a04 \
                        sha256  281755239b23f68070e1a9e3e35df63a04662598f86ec946137287cb8f31ff91 \
                        size    23284
} elseif {[vercmp ${php.branch} 5.3] >= 0} {
    version             1.4.3
    revision            0
    checksums           rmd160  ceddfd03ff954e3b839d3b29b8d6b8d61f92a886 \
                        sha256  04ef67006b26fdb787817d6cb351da3524f63bb6bf772185103dd53f99f451c5 \
                        size    21690
}

description             a PHP wrapper for scrypt

long_description        ${name} is ${description}, key derivation function \
                        designed to be secure against hardware brute-force attacks.

configure.args-append   --enable-scrypt

use_parallel_build      yes

test.run                yes
