# $Id: Portfile 67818 2010-05-18 22:25:16Z macsforever2000@macports.org $

PortSystem      1.0

name            wxgtk
conflicts       wxWidgets-python
version         2.8.4
revision        3
categories      x11
platforms       darwin
maintainers     nomaintainer

description     The wxWidgets GUI toolkit with GTK+ bindings
long_description    \
    A C++ package for platform independent software development

homepage        http://wxwidgets.org/
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 \
                patch-gsocket.diff

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
}
