# $Id: Portfile,v 1.1 2006/05/03 19:41:04 markd Exp $
PortSystem      1.0

name                    gkwebmon
version                 0.2
categories              net
maintainers             markd@opendarwin.org

description             Web monitor plugin for GKrellM
long_description        ${description}

homepage                http://gkwebmon.sourceforge.net/

platforms               darwin
master_sites            sourceforge
checksums               md5 2fa572746e14e8db9ed9ab78cc934a5f
extract.suffix		.tgz

patchfiles		patch-Makefile

depends_lib             port:gkrellm

use_configure		no
build.target		""

build.type		gnu
build.env           	CPPFLAGS="-L${prefix}/lib" \
                        CFLAGS="-I${prefix}/include" \
                        LDFLAGS="-L${prefix}/lib"

set plugin_dir		${prefix}/libexec/gkrellm2/plugins

post-patch {
        reinplace "s|\$(PLUGIN_DIR)|${plugin_dir}|g" \
                ${worksrcpath}/Makefile
}

pre-destroot {
	xinstall -m 755 -d ${destroot}${plugin_dir}
}
