# $Id: Portfile 95443 2012-07-12 23:11:21Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup hidef 0.1.13 pecl
license         PHP
categories      php devel
platforms       darwin
maintainers     ryandesign openmaintainer
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  48bebfbccb03aa24a4cbda93e4ebe2dcfd90cae5 \
                sha256  e4fb6029260428e2def2bf048711c57c34335c06516f17b20669e2a34c29854e

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
}
