# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $

PortSystem 1.0
name			webalizer
version			2.01-10
revision		1
categories		www
maintainers		pobox.com:mike.mclean
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 \
				ftp://ftp.mrunix.net/pub/webalizer/old
checksums		md5 9217595005aec46a505e1fb349052a8e

fetch.user anonymous
fetch.password anonymous@example.com

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 }

