# $Id: Portfile,v 1.2 2003/12/10 22:45:19 mww Exp $

PortSystem 1.0
name		libhttpd
version		1.3
categories	devel www
maintainers	mww@opendarwin.org
platforms	darwin freebsd
description	provides basic web server capabilities
long_description	libhttpd can be used to add basic web server \
			capabilities to an application or embedded device. The \
			library handles both static and dynamically generated \
			content, has very low overheads, and provides many \
			features to simplify the creation of web based \
			application interfaces.

homepage	http://www.hughes.com.au/products/libhttpd/
master_sites	${homepage}
checksums	md5 ea0fb523fdb467702d34185be55e940c

patch      {
	reinplace "s|/usr/local|${destroot}${prefix}|g" \
		${worksrcpath}/src/Makefile.tmpl
}

post-destroot	{
	file mkdir ${destroot}${prefix}/share/doc/${name}
	file copy ${worksrcpath}/HISTORY ${worksrcpath}/License \
		${worksrcpath}/README ${worksrcpath}/doc/FAQ.txt \
		${worksrcpath}/doc/libhttpd.pdf \
		${destroot}${prefix}/share/doc/${name}
}
