# $Id: Portfile 57880 2009-09-18 02:30:44Z toby@macports.org $

PortSystem 1.0

name            mongoose
version         2.8
categories      www
maintainers     toby
description     easy to use web server
long_description \
	Easy to use web server for Windows and UNIX. Mongoose provides simple \
	and clean API for embedding it into existing programs. Targeting Web \
	application developers, embedded system developers, and people who \
	need to setup file sharing quickly.
homepage        http://code.google.com/p/mongoose/
platforms       darwin
license         MIT

master_sites    googlecode
extract.suffix  .tgz

checksums       md5 b72e937a356d3f3cd80cfe6653f0168d \
                sha1 328375ca133f6c53be6ce7c7ca85bb54549b4849 \
                rmd160 b9972c1c61cf002e07af235ac18b934c66fb5e88

worksrcdir      ${name}

patchfiles      patch-Makefile

configure {
	reinplace s|__CFLAGS__|${configure.cflags}| ${worksrcpath}/Makefile
}

build.target    mac
build.env       CC=${configure.cc}

destroot {
	xinstall -m 555 ${worksrcpath}/mongoose ${destroot}${prefix}/bin
	xinstall -m 444 ${worksrcpath}/mongoose.1 ${destroot}${prefix}/share/man/man1
}

test.run        yes

livecheck.distname default
