# $Id: Portfile 92234 2012-04-22 09:07:23Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup hidef 0.1.11 pecl
license         PHP
categories      php devel
platforms       darwin
maintainers     nomaintainer
description     Constants for real

long_description \
    Allow definition of user defined constants in simple ini files, which are \
    then processed like internal constants, without any of the usual \
    performance penalties.

checksums       rmd160  5a4107de89644299ea2cfb07136497d13248b453 \
                sha256  24f7fe45810503d19d36261d10c508dbeb923b4ad725fc0015f6e6dadccc2389

use_parallel_build yes

test.run yes

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

platform darwin {
    patchfiles-append patch-hidef.c.diff
}
