# $Id: Portfile 97652 2012-09-10 20:18:16Z ryandesign@macports.org $

PortSystem 1.0

name			xdiskusage
version			1.48
revision		2
categories		x11
platforms		darwin
maintainers		nomaintainer
license			GPL-2+

description		program to show you what is using up all your disk space
long_description	${description}

homepage		http://xdiskusage.sourceforge.net/
master_sites	${homepage}
extract.suffix	.tgz
checksums		md5 a902aa9d73761ade98256c3cd5c1f533

depends_lib		path:lib/libfltk.dylib:fltk

patchfiles		patch-configure.in.diff \
				patch-xdiskusage.C.diff

# fix configure error with clang:
# error: C++ requires a type specifier for all declarations
use_autoreconf	yes

destroot.destdir	prefix=${destroot}${prefix} mandir=${destroot}${prefix}/share/man

platform macosx {
    patchfiles-append       patch-makeinclude.in.diff
    
    post-activate {
        system "${prefix}/bin/fltk-config --post xdiskusage"
    }
}
