PortSystem      1.0

name                gkrellm_snmp
version             1.0
categories          net
license             GPL-2+
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_build       port:pkgconfig
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
}
