# $Id: Portfile 114120 2013-11-29 22:42:37Z jmr@macports.org $

PortSystem 1.0

name		AfterStep
version		2.2.11
categories	x11
maintainers	nomaintainer
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	rmd160  a82a4b3fddcbcd97862212669c11d14629e51a4d \
		sha256  ca7e872fc4d8320899667087d934e0672a3f38264a5207ea314d3c20242903aa

depends_build	port:pkgconfig

depends_lib \
        port: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
	}
}
