# -*- 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 74826 2011-01-03 10:28:48Z nox@macports.org $

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup amfext 0.9.2 pecl
php5extension.extensions amf
name            php5-amf
license         PHP
categories      php devel
platforms       darwin
maintainers     nomaintainer
description     ActionScript Message Format extension

long_description \
    Allows to encode and decode PHP data in ActionScript Message Format (AMF) \
    version 0 and 3.

checksums       md5     c5899ca580f19ef7f057b6ea41c2d236 \
                sha1    f2f40d4ddc4416fa09f17e94ed037f907fd87ec4 \
                rmd160  d55426eb9da3513058fc58db51f5ba35cff831a9

patchfiles      patch-amf.c.diff

configure.args  --with-amf

use_parallel_build yes

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} CREDITS ChangeLog LICENSE README \
        ${destroot}${docdir}
}

livecheck.regex {>(\d+(?:\.\d+)*)</a></th>}
