# $Id: Portfile 73909 2010-11-29 03:38:10Z toby@macports.org $

PortSystem 1.0

name            mongoose
version         2.11
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 f6985da7513d354cc18b21b7670d23c1 \
                sha1 e7a1e2d190b254cd2b9b9fee667a1abd1033c972 \
                rmd160 bf9daa76d58b3a819ab097936f8f26a5c0db3b8d

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
