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

PortSystem          1.0

name                gdmap
version             0.8.1
revision            3
license             GPL-2
description         GdMap is a tool which allows to visualize disk space.
long_description    ${description} \
                    Ever wondered why your hard disk is full or what \
                    directory and files take up most of the space? With \
                    GdMap these questions can be answered quickly. To \
                    display directory structures cushion treemaps are used \
                    which visualize a complete folder or even the whole \
                    hard drive with one picture.  Cushion treemaps display \
                    directories and files in rectangular areas. The larger \
                    a file is the larger is the rectangle which represents \
                    it. All files in one directory are painted within the \
                    rectangle of that directory.

maintainers         {eborisch @eborisch} openmaintainer
categories          gnome sysutils
homepage            http://gdmap.sourceforge.net/
master_sites        sourceforge
platforms           darwin freebsd

checksums \
    rmd160  72744f1d25b3409d6609b7afa982669f17f4e8b5 \
    sha256  a200c98004b349443f853bf611e49941403fce46f2335850913f85c710a2285b

depends_lib         port:gtk2

depends_build       port:pkgconfig \
                    port:autoconf \
                    port:automake \
                    port:intltool

# Patches from http://sourceforge.net/p/gdmap/bugs/
patchfiles          patch-autogen.sh.diff \
                    gdmap-0.8.1-deprecated.patch \
                    hardlinks.patch \
                    symlinks.patch

post-extract {
    reinplace "s/ -DGTK_DISABLE_DEPRECATED//g" configure.ac
    reinplace "s|#include \<sys/vfs.h\>||g" src/gui_main.c
}

# reconfigure using autogen.sh for intltool 0.51 compatibility

configure.cmd       ./autogen.sh && ./configure