# -*- 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-hidef
version         0.1.13
license         PHP
categories      php devel
platforms       darwin
maintainers     ryandesign openmaintainer

php.branches    5.3 5.4 5.5
php.pecl        yes

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

if {${name} != ${subport}} {
    test.run yes
    
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 644 -W ${worksrcpath} CREDITS ${destroot}${docdir}
    }
    
    platform darwin {
        patchfiles-append patch-hidef.c.diff
    }
}