# $Id: Portfile 65790 2010-03-31 23:25:54Z ryandesign@macports.org $

PortSystem          1.0

name                fvwm
conflicts           fvwm2
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

depends_lib         port:xorg-libXext \
                    port:xpm

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

universal_variant   no

use_parallel_build  yes

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