Wxwidgets version 2.8.9 - How to Download and Install on Mac OS X
Saturday the 4th of July, 2009

    wxwidgets  most recent diff


    version 2.8.9

      View the most recent changes for the wxwidgets port at: wxwidgets.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for wxwidgets.
      The raw portfile for wxwidgets 2.8.9 is located here:
      http://wxwidgets.darwinports.com/dports/graphics/wxWidgets/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/wxwidgets


      The wxwidgets Portfile 40194 2008-09-24 15:46:52Z jwa macports.org $

      PortSystem 1.0

      Name: wxWidgets
      Version: 2.8.9
      Category: graphics devel
      Platform: 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
      Patch Files: 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\]+)/


    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/wxwidgets
      % sudo port install wxwidgets
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching wxwidgets
      ---> Verifying checksum for wxwidgets
      ---> Extracting wxwidgets
      ---> Configuring wxwidgets
      ---> Building wxwidgets with target all
      ---> Staging wxwidgets into destroot
      ---> Installing wxwidgets
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using wxwidgets with these commands:
      %  man wxwidgets
      % apropos wxwidgets
      % which wxwidgets
      % locate wxwidgets

     Where to find more information:

    Darwin Ports



    Lightbox this page.