# $Id: Portfile 89480 2012-01-31 17:20:14Z ryandesign@macports.org $
# vim: ts=8 sw=8

PortSystem          1.0

name                fcgi
version             2.4.0
revision            3
categories          www
license             Permissive
maintainers         nomaintainer
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.

homepage            http://www.fastcgi.com/
master_sites        ${homepage}dist/ \
                    ${homepage}dist/old/

checksums           md5 d15060a813b91383a9f3c66faf84867e
platforms           darwin

patchfiles          patch-acinclude.m4.diff patch-configure.in.diff \
                    patch-libfcgi-Makefile.am.diff \
                    patch-libfcgi-fcgi_stdio.c.diff \
                    patch-cgi-fcgi-cgi-fcgi.c.diff

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}
   eval delete [glob ${destroot}${prefix}/share/doc/${name}/*.\[13\]]
}

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
