# $Id$ PortSystem 1.0 name wxWidgets version 2.8.9 categories graphics devel platforms darwin maintainers mww jwa description mature cross-platform C++ GUI framework long_description wxWidgets is a mature open-source cross-platform C++ \ GUI framework for Mac OS, Unix, Linux, Windows. It can \ make use of a variety of native widget sets as well as \ its own widget set: Mac OS, GTK+, Motif, WIN32. \ wxWidgets will even run on embedded systems using \ Linux and X11. homepage http://www.wxwidgets.org/ distname wxWidgets master_sites sourceforge:wxwindows \ http://biolpc22.york.ac.uk/pub/${version}/ use_bzip2 yes distfiles ${distname}-${version}${extract.suffix} dist_subdir ${distname}/${version} checksums ${distname}-${version}${extract.suffix} \ md5 b0b2d0f6915a21ca6f33896ee8f50387 \ ${distname}-${version}${extract.suffix} \ sha1 5ad687f8c8d5a9ef6acfa1b8ba0376f86fb07406 \ ${distname}-${version}${extract.suffix} \ rmd160 d0f1a07cecae6645b0367decf9a6dbe463fa4505 depends_lib port:jpeg \ port:tiff \ port:libpng \ port:zlib \ port:libiconv \ port:expat \ port:libsdl \ port:libsdl_mixer set worksrcdir ${distname}-${version}/build extract.only ${distname}-${version}${extract.suffix} #patchfiles patch-chkconf.diff patch-TECConvertText.diff patchfiles patch-chkconf.diff #configure.cmd ../${distname}-${version}/configure configure.cmd ../configure configure.ldflags -L${build.dir}/lib -L${prefix}/lib configure.args --mandir=${prefix}/share/man \ --with-libiconv-prefix=${prefix} \ --with-libjpeg \ --with-libtiff \ --with-libpng \ --with-zlib \ --with-sdl \ --with-opengl \ --with-mac \ --disable-sdltest \ --enable-unicode \ --enable-display \ --enable-monolithic set contrib "gizmos stc ogl" set installtype release build.target post-build { foreach c { ${contrib} } { system "cd ${build.dir} && make -C contrib/src/${c}" } } post-destroot { foreach c { ${contrib} } { system "cd ${build.dir} && make -C contrib/src/${c} install ${destroot.destdir}" } xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} xinstall -m 644 -W ${workpath}/${distname}-${version} \ install-mac.txt install-mgl.txt install-motif.txt \ INSTALL-OS2.txt install-x11.txt readme-cocoa.txt \ readme-gtk.txt readme-mac.txt \ readme-mgl.txt readme-motif.txt readme-x11.txt \ ${destroot}${prefix}/share/doc/${name} set confscript ${prefix}/lib/wx/config/mac-unicode-${installtype}-2.8 reinplace "s|-L${build.dir}/lib||" ${destroot}${confscript} ln -sf ${confscript} ${destroot}${prefix}/bin/wx-config } variant nonmonolithic description {build libraries separately} { configure.args-delete --enable-monolithic } variant debug description {add debug info to libraries} { configure.args-append --enable-debug set installtype debug } livecheck.check regex livecheck.url ${homepage}/downloads/ livecheck.regex ftp.wxwidgets.org/pub/(2.8.\[0-9\]+)/