# $Id: Portfile 50572 2009-05-04 19:19:09Z jeremyhu@macports.org $

PortSystem		1.0
name			wxgtk
version			2.8.4
revision                1
categories		x11
maintainers		nomaintainer
description		The wxWidgets GUI toolkit with GTK+ bindings
long_description	\
	A C++ package for platform independent software development

homepage		http://wxwidgets.org/
platforms		darwin
master_sites	sourceforge:wxwindows
distname		wxGTK-${version}
checksums		md5 22e42c1601d9759530c875ffa2c3c554
use_bzip2		yes

depends_lib		port:gtk2 port:tiff port:jpeg \
				port:libpng port:freetype \
				port:zlib

patchfiles		patch-Makefile.in


configure.args	--with-gtk --with-libpng --with-libjpeg --with-libtiff \
				--with-freetype --with-zlib

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	eval xinstall -m 644 [glob ${worksrcpath}/*.txt] \
		${destroot}${prefix}/share/doc/${name}
}

variant opengl {
	depends_lib-append		port:mesa
	configure.args-append	--with-opengl
}
