# $Id: Portfile 48826 2009-03-29 22:07:22Z ryandesign@macports.org $

PortSystem 1.0
name		fvwm
version		1.24r
revision	4
description	A very simple window manager supporting a pager

long_description One of the earlier paging window managers with what is still considered to be a very elegant and minimal feature set yet highly configurable and expandable via plug-ins.
homepage	http://www.fvwm.org/

maintainers	nomaintainer
categories	x11 x11-wm
platforms	darwin
master_sites	ftp://ftp.hpc.uh.edu/pub/fvwm/version-1/ \
		ftp://ftp.ics.es.osaka-u.ac.jp/pub/CFAN/sources/1.x/
checksums	md5 875733e77e285566197f4b50746aefc6
patchfiles	patch-configure.h
use_xmkmf	yes

universal_variant no
use_parallel_build yes

depends_build \
	path:bin/xmkmf:imake

depends_lib \
	port:xorg-libXext \
	port:xpm

destroot.destdir \
	DESTDIR=${destroot} \
	BINDIR=${prefix}/bin

pre-configure {
	reinplace "s|/usr/X11R6|${prefix}|" ${worksrcpath}/configure.h
}
