# $Id: Portfile 89889 2012-02-14 05:03:02Z rmstonecipher@macports.org $
PortSystem	1.0
name		sawfish
version		1.3
revision    2
categories	x11
platforms	darwin
maintainers	hilaiel.com:lloyd
description	A lisp-based extensible window manager

long_description Sawfish is an extensible window manager using a \
                 lisp-based scripting language -- all window \
                 decorations are configurable and all user-interface \
                 policy is controlled through the extension \
                 language. This is no layer on top of twm, but a \
                 wholly new architecture. 

homepage	http://sawmill.sourceforge.net/
master_sites	sourceforge:sawmill
checksums	md5 9e5ce5e76c60acecdb1889c1f173295a

patchfiles	patch-config.guess patch-main.c patch-Makefile.in

depends_build	port:librep \
		port:rep-gtk \
		port:audiofile \
		port:esound

configure.args --infodir=${prefix}/share/info \
               --mandir=${prefix}/share/man

post-install {
                ui_msg "\n
To use the sawfish window manager, you must set it to run at X11 startup in
/etc/X11/xinit/xinitrc or ~/.xinitrc.  To change the window manager from the
default quartz window manager to sawfish, change:

exec quartz-wm

to

exec sawfish
\n"
}

livecheck.url   http://download.tuxfamily.org/${name}/
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)"
