# $Id: Portfile 30239 2007-10-23 01:55:09Z jmpp@macports.org $
PortSystem      1.0

name                    gkrellm_snmp
version                 1.0
categories              net
maintainers             nomaintainer

description             A gkrellm SNMP Monitor
long_description        ${description}

homepage                http://triq.net/gkrellm_snmp.html

platforms               darwin
master_sites            http://triq.net/gkrellm/
checksums               md5 f385e0e5cc5c4d81773d82ef3f0c135e

depends_lib             port:gkrellm

use_configure		no

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

build.target		osx

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

post-extract {
        reinplace "s|/usr/lib/gkrellm2/plugins|${plugin_dir}|g" \
                ${worksrcpath}/Makefile
}

