# $Id: Portfile 50980 2009-05-14 19:41:55Z and.damore@macports.org $

PortSystem 1.0

name		AfterStep
version		2.2.8
categories	x11
maintainers	waqar
description	Window Manager based on NeXTStep interface.
long_description	\
	AfterStep is a window manager for the Unix X Window System. 	\
	Originally based on the look and feel of the NeXTStep interface,\
	it provides end users with a consistent, clean, and elegant 	\
	desktop. The goal of AfterStep development is to provide for 	\
	flexibility of desktop configuration, improving aestetics, 	\
	and efficient use of system resources.
homepage	http://www.afterstep.org
platforms	darwin
master_sites    afterstep:stable
use_bzip2	yes

checksums	md5 8734622c9cb549f5baa8b3262312db70		\
		sha1 28d9c53a0512d0a931bfc7bc2ad0e08bc31651fb	\
		rmd160 2e91fed7d751b668540c14725045d2bcb1209fbc

depends_build	port:pkgconfig

depends_lib \
        path:include/gif_lib.h:giflib \
        port:gtk2 \
        port:librsvg

configure.args	--mandir=${prefix}/share/man 		\
		--infodir=${prefix}/share/info		\
		--enable-i18n --with-x 	\
		--with-svg				

platform darwin	{
	configure.ldflags-append	"-bind_at_load"
	patchfiles	patch-parser.c
	pre-configure	{
		reinplace "s|-rdynamic|-dynamic|g" 	    \
		  ${worksrcpath}/configure		    \
		  ${worksrcpath}/libAfterBase/configure     \
		  ${worksrcpath}/libAfterBase/configure.in  \
		  ${worksrcpath}/libAfterImage/configure    \
		  ${worksrcpath}/libAfterImage/configure.in
	}
}
