Portfile

# $Id: Portfile 20493 2006-11-03 15:45:48Z blair@macports.org $

PortSystem 1.0
name webalizer
version 2.01-10
revision 1
categories www
maintainers mike.mclean@pobox.com
description The Webalizer is a fast, free web server log file analysis program

long_description The Webalizer is a fast, free web server log file analysis program. \
It produces highly detailed, easily configurable usage reports in HTML format, \
for viewing with a standard web browser.

platforms darwin
homepage http://www.mrunix.net/webalizer/
extract.suffix .tgz
distfiles ${name}-${version}-src${extract.suffix}
master_sites ftp://ftp.mrunix.net/pub/webalizer
checksums md5 9217595005aec46a505e1fb349052a8e

depends_lib lib:libgd.2:gd2 \
lib:libz:zlib \
lib:libpng:libpng

configure.args --mandir=${prefix}/share/man \
--with-etcdir=${prefix}/etc \
--with-gdlib=${prefix}/lib \
--with-gd=${prefix}/include \
--with-z-inc=${prefix}/include \
--with-zlib=${prefix}/lib \
--with-png-inc=${prefix}/include \
--with-png=${prefix}/lib

destroot.destdir prefix=${destroot}${prefix} \
ETCDIR=${destroot}${prefix}/etc \
MANDIR=${destroot}${prefix}/share/man/man1

post-destroot { xinstall -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -v -W ${worksrcpath} \
CHANGES COPYING Copyright country-codes.txt \
DNS.README README README.FIRST \
${destroot}${prefix}/share/doc/${name}
}

variant static { configure.args-append --enable-static }
variant debug { configure.args-append --enable-debug }