# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4


PortSystem              1.0

name                    gkrellm-gtodo
version                 0.2.5a
revision                0
checksums               rmd160  50e40ca25fda7be37a5a705cd279aeee984ab3a1 \
                        sha256  9771d2b7339984c3bfd7a4bd2a16ebac47d58aa45dd2ce11e2c536bac66fdb24 \
                        size    58761

categories              x11
platforms               darwin
license                 GPL-2+
maintainers             nomaintainer

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

homepage                https://web.archive.org/web/20060630003234/http://voidtrance.homelinux.net/projects/software/
master_sites            http://www.gnu-darwin.org/distfiles/

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
}
