# -*- 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           github 1.0

name                fcgi
github.setup        FastCGI-Archives fcgi2 2.4.2
revision            0
categories          www
maintainers         nomaintainer
license             Permissive

description         The FastCGI development kit in C

long_description    FastCGI is a language independent, scalable, open \
                    extension to CGI that provides high performance without \
                    the limitations of server specific APIs. This is the C \
                    development kit.

checksums           rmd160  2d1355a3afb63f4a0f399bbb12771a74f377370f \
                    sha256  1fe83501edfc3a7ec96bb1e69db3fd5ea1730135bd73ab152186fd0b437013bc \
                    size    261974
github.tarball_from archive

use_autoreconf      yes
autoreconf.args     -fvi

use_parallel_build  no

post-destroot {
    xinstall -m 644 -W ${worksrcpath}/doc cgi-fcgi.1 \
        ${destroot}${prefix}/share/man/man1
    xinstall -m 644 -W ${worksrcpath}/doc FCGI_Accept.3 FCGI_Finish.3 \
        FCGI_SetExitStatus.3 FCGI_StartFilterData.3 \
        ${destroot}${prefix}/share/man/man3
    xinstall -d -m 0755 ${destroot}${prefix}/share/doc
    copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
    delete {*}[glob ${destroot}${prefix}/share/doc/${name}/*.\[13\]]
}
