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

name                    gkrellm-gtodo
version                 0.2.5a
categories              x11
maintainers             markd@opendarwin.org

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
}
