# -*- coding: utf-8; mode: tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=2:ts=2:sts=2 # $Id$ PortSystem 1.0 name wxWidgets-python conflicts wxgtk wxWidgets version 2.8.12.0 revision 4 categories graphics devel license wxwidgets platforms darwin maintainers nomaintainer 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. This port version is meant to be in sync with py*-wxpython. homepage http://www.wxwidgets.org/ distname wxWidgets master_sites sourceforge:wxpython use_bzip2 yes distname wxPython-src distfiles ${distname}-${version}${extract.suffix} checksums md5 402e0b81e06f596d849e221a7a76acc6 \ sha1 f9ce806dcb5517beb6e3d2ee0ecbf8e569b7f8e4 \ rmd160 6420a8e6e59386b344ac058435a4ae6693c2c04b depends_build \ port:pkgconfig 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} 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 \ --disable-sdltest \ --enable-unicode \ --enable-display \ --enable-monolithic set contrib "gizmos stc ogl" set installtype release build.target universal_variant no use_parallel_build no variant carbon conflicts gtk description {use carbon} { supported_archs i386 ppc configure.args-append --with-mac configure.cflags-append -arch ${configure.build_arch} configure.ldflags-append -arch ${configure.build_arch} configure.cxxflags-append -arch ${configure.build_arch} configure.cppflags-append -arch ${configure.build_arch} configure.objcflags-append -arch ${configure.build_arch} } variant gtk conflicts carbon description {use gtk} { depends_lib-append port:gtk2 \ port:mesa \ port:libGLU \ port:freeglut depends_lib-delete port:libsdl \ port:libsdl_mixer configure.args-delete --with-sdl configure.args-append --with-gtk } 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 } if {![variant_isset carbon]} { default_variants-append +gtk } post-configure { if {[variant_isset gtk]} { # for some reason, 'configure --with-gtk' does not specify to link the X11 opengl libs # not sure what happens if quartz variant of gtk2 is used reinplace "s|EXTRALIBS_OPENGL = |EXTRALIBS_OPENGL = -lGL -lGLU -lglut|g" ${worksrcpath}/Makefile } } 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} if {[variant_isset carbon]} { set confscript ${prefix}/lib/wx/config/mac-unicode-${installtype}-2.8 } if {[variant_isset gtk]} { set confscript ${prefix}/lib/wx/config/gtk2-unicode-${installtype}-2.8 } reinplace "s|-L${build.dir}/lib||" ${destroot}${confscript} ln -sf ${confscript} ${destroot}${prefix}/bin/wx-config } livecheck.type regex livecheck.url ${homepage}/downloads/ livecheck.regex Current Stable Release.*(2\\.\[0-9\]\\.\[0-9\]+)