# $Id: Portfile,v 1.2 2005/02/15 22:39:20 toby Exp $

PortSystem 1.0
name             mathopd
version          1.5p4
categories       www
maintainers      toby@opendarwin.org
description      small, yet very fast HTTP server
long_description \
    Mathopd is a very small, yet very fast HTTP server for UN*X \
    systems. Mathopd is designed specifically to handle a large \
    number of connections with minimal fuss. It contains no \
    unnecessary add-ons, but it does the trick for most things.
homepage         http://www.mathopd.org/
platforms        darwin
master_sites     ${homepage}dist/
checksums        md5 38b7bfd66b4bd18d4cb41b4ce4703e58
worksrcdir       ${distname}/src

patch {
    reinplace "s|LIBS = -lcrypt||" ${worksrcpath}/Makefile
}

configure        {}

destroot.destdir PREFIX=${destroot}${prefix}
post-destroot {
    file mkdir ${destroot}${prefix}/share/doc
    file copy ${worksrcpath}/../doc ${destroot}${prefix}/share/doc/mathopd
}

post-install {
    ui_msg ""
    ui_msg "Documentation installed into ${prefix}/share/doc/mathopd/"
    ui_msg "Mathopd will require some configuration before it can be used."
}
