# $Id: Portfile 115549 2014-01-04 14:05:29Z jmr@macports.org $

PortSystem      1.0

name                    gkrellm-gtodo
version                 0.2.5a
categories              x11
license                 GPL-2+
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_build           port:pkgconfig
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
}
