# $Id: Portfile 73467 2010-11-14 13:57:05Z jmr@macports.org $

PortSystem 1.0

name		blackbox
version		0.70.1
revision        1
categories	x11 x11-wm
maintainers	pmq
platforms	darwin freebsd

description	Blackbox is a fast, light window manager
long_description	Blackbox is that fast, light window manager you \
			have been looking for without all those annoying \
			library dependancies. If you have a C++ compiler \
			and the X Window System you can compile and use it.

homepage	http://blackboxwm.sourceforge.net
master_sites    sourceforge:blackboxwm
checksums	md5 2d173b95ca5e64ef478c6a5d2deee9df

livecheck.type	regex
livecheck.url	${homepage}
livecheck.regex	"Latest release: <em>(\[0-9a-z.\]+)</em>"

depends_lib \
	port:xorg-libXext \
	port:Xft2 \
	port:expat \
	port:libiconv

post-patch {
    # the entire use of this define is questionable, but this fixes the build at least
    reinplace "s|_XUTIL_H_|_X11_XUTIL_H_|" ${worksrcpath}/lib/Util.hh
}

configure.args  --mandir=${prefix}/share/man \
                --x-includes=${prefix}/include \
                --x-libraries=${prefix}/lib
