# $Id: Portfile 50572 2009-05-04 19:19:09Z jeremyhu@macports.org $
PortSystem 1.0
name		evilwm
version		0.99.21
revision	3
description	A minimalist window manager for the X Window System.
long_description	${description}
maintainers	nomaintainer
categories	x11 x11-wm
platforms	darwin 
homepage	http://www.6809.org.uk/evilwm/
master_sites    ${homepage}
checksums	md5 092dff2f7c1151af6823029db8fa4d62
use_parallel_build yes
depends_lib \
	port:xorg-libXext

configure {
	reinplace "s|XROOT=.*|XROOT=${prefix}|" ${worksrcpath}/Makefile
	reinplace "s|\$(LDFLAGS)|\$(LDFLAGS) \$(OTHERLDFLAGS)|g" ${worksrcpath}/Makefile
}

build.target-append CFLAGS="${configure.cflags}" OTHERLDFLAGS="${configure.ldflags}" prefix="${destroot}${prefix}"
variant universal {
	build.target-append CFLAGS="${configure.cflags} ${configure.universal_cflags}" OTHERLDFLAGS="${configure.ldflags} ${configure.universal_ldflags}"
}

destroot.target-append prefix="${destroot}${prefix}"
