# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
PortSystem			1.0
name				fvwm2
version				2.5.21
revision                        1
description			Version 2.x of FVWM, an X11 window manager.
long_description	FVWM 2.x is an extremely powerful ICCCM-compliant multiple virtual \
					desktop window manager for the X Window system.
homepage			http://www.fvwm.org/
maintainers			kallisys.net:pguyot openmaintainer
categories			x11 x11-wm
platforms			darwin
master_sites		ftp://ftp.fvwm.org/pub/fvwm/version-2/ \
					ftp://ftp.hpc.uh.edu/pub/fvwm/version-2/
distname			fvwm-${version}
use_bzip2			yes
checksums			md5 c11efef91420e686d54f772e7162e879 \
				sha1 a66746c38d392da826b0c6f880b486c1064ee734 \
				rmd160 4025f6c75c0919bffdaa9acbc7a4d987617d098b

use_parallel_build yes

depends_build \
	port:autoconf \
	port:automake \
	port:libtool

depends_lib \
	port:xorg-libsm \
	port:Xft2 \
	port:xorg-libXinerama \
	port:xpm \
	port:libpng \
	port:gtk1 \
	port:readline \
	port:gnome-libs

configure.args				--enable-gtk \
					--with-gnome \
					--with-ncurses-library=yes \
					--without-rplay-library \
					--without-stroke-library

use_autoconf yes
autoconf.cmd autoreconf
autoconf.args -fvi

livecheck.check	regexm
livecheck.regex	{Latest Unstable Release: &nbsp; </td>\s+.*?<a href="download" >([^<]*)</a>} 
livecheck.url	${homepage}

variant without_gnome {
	configure.args-delete --with-gnome
	configure.args-append --without-gnome
	depends_lib-delete port:gnome-libs
}

# port:gtk1 is not universal
universal_variant no
