# $Id: Portfile 30259 2007-10-23 02:31:56Z jmpp@macports.org $
PortSystem      1.0

name                    gkrellm-gtodo
version                 0.2.5a
categories              x11
maintainers             nomaintainer

description             GKrellM2 plugin that tracks tasks and to-do items
long_description        ${description}

homepage                http://voidtrance.homelinux.net/projects/software/

platforms               darwin
master_sites            http://voidtrance.home.comcast.net/ \
			http://depot.fsck.ch/mirror/distfiles/

checksums               md5 164b8d17ff7841583e933252cf347a2f
worksrcdir		${name}

depends_lib             port:gkrellm

use_configure		no

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

patchfiles		patch-Makefile

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

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