# -*- 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
# $Id: Portfile 93008 2012-05-14 00:41:28Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       php 1.0

php.setup       hidef 0.1.11 pecl
php.branches    5.3 5.4
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

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
    }
}
