# $Id: Portfile,v 1.1 2006/05/03 06:55:33 markd Exp $
PortSystem      1.0

name                    gkrellm_snmp
version                 0.23
categories              net
maintainers             markd@opendarwin.org

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 8180803115f05cde7d889a0dc87feb2d

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
}

