Codeblocks version 8.02 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    codeblocks  most recent diff


    version 8.02

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


      The codeblocks Portfile 50980 2009-05-14 19:41:55Z and.damore macports.org $

      PortSystem 1.0

      Name: codeblocks
      Version: 8.02
      Platform: darwin freebsd
      Category: devel aqua x11
      Maintainers: afb
      Description: Open Source, Cross-platform, Free C/C++/D IDE
      Long Description: Code::Blocks is a free C++ IDE built specifically to meet the most demanding needs of its users. It was designed, right from the start, to be extensible and configurable.

      Homepage: http://codeblocks.org/
      Master Sites: http://download.berlios.de/codeblocks/ sourceforge:codeblocks
      distname ${name}-${version}-src
      worksrcdir ${name}-${version}
      use_bzip2 yes
      Checksums: md5 ac15b4b3de50d7650c2f7a8dbcb30f88 sha1 078932cfd4fee2066ec931cb6dfa8079235c1237 rmd160 88451f42ac4de2b98d57416a3cea1a0647344b30

      configure.args --with-contrib-plugins=all

      post-destroot {
      system "strip -S ${destroot}${prefix}/bin/codeblocks"
      system "strip -S ${destroot}${prefix}/lib/libcodeblocks*.so || true"
      system "strip -S ${destroot}${prefix}/lib/libcodeblocks*.dylib || true"
      system "strip -S ${destroot}${prefix}/lib/libwxsmithlib*.so || true"
      system "strip -S ${destroot}${prefix}/lib/libwxsmithlib*.dylib || true"
      system "strip -S ${destroot}${prefix}/share/codeblocks/plugins/*.so"
      }

      platform macosx {}
      if { [variant_isset macosx] && ![variant_isset x11] } { default_variants +aqua }
      if { [variant_isset puredarwin] } { default_variants +x11 }
      if { [variant_isset freebsd] } { default_variants +x11 }

      Variant: aqua requires macosx description "Use the wxMac port of wxWidgets" {
      depends_lib port:wxWidgets

      post-destroot {
      xinstall -d -m 0755 ${destroot}/Applications/MacPorts
      set appPath ${destroot}/Applications/MacPorts/CodeBlocks.app/Contents

      xinstall -d -m 0755 ${appPath}
      file copy -force ${worksrcpath}/codeblocks.plist ${appPath}/Info.plist
      xinstall -d -m 0755 ${appPath}/Resources
      file copy -force ${worksrcpath}/src/src/resources/icons/app.icns ${appPath}/Resources
      file copy -force ${worksrcpath}/src/src/resources/icons/cbp.icns ${appPath}/Resources
      file copy -force ${worksrcpath}/src/src/resources/icons/csd.icns ${appPath}/Resources
      file copy -force ${worksrcpath}/src/src/resources/icons/c.icns ${appPath}/Resources
      file copy -force ${worksrcpath}/src/src/resources/icons/cg.icns ${appPath}/Resources
      file copy -force ${worksrcpath}/src/src/resources/icons/cpp.icns ${appPath}/Resources
      file copy -force ${worksrcpath}/src/src/resources/icons/d.icns ${appPath}/Resources
      file copy -force ${worksrcpath}/src/src/resources/icons/f.icns ${appPath}/Resources
      file copy -force ${worksrcpath}/src/src/resources/icons/h.icns ${appPath}/Resources
      file copy -force ${worksrcpath}/src/src/resources/icons/rc.icns ${appPath}/Resources

      xinstall -d -m 0755 ${appPath}/MacOS
      ln -sf ${prefix}/bin/codeblocks ${appPath}/MacOS/CodeBlocks
      xinstall -d -m 0755 ${appPath}/Resources/share
      ln -sf ${prefix}/share/codeblocks ${appPath}/Resources/share/codeblocks

      delete ${destroot}${prefix}/share/applications/codeblocks.desktop
      delete ${destroot}${prefix}/share/icons/gnome
      delete ${destroot}${prefix}/share/mime/packages/codeblocks.xml
      delete ${destroot}${prefix}/share/pixmaps/codeblocks.png
      }
      }

      Variant: x11 conflicts aqua description "Use the wxGTK port of wxWidgets" {
      depends_lib port:wxgtk

      patchfiles patch-wxscoder.cpp.diff
      }


    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/codeblocks
      % sudo port install codeblocks
      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 codeblocks
      ---> Verifying checksum for codeblocks
      ---> Extracting codeblocks
      ---> Configuring codeblocks
      ---> Building codeblocks with target all
      ---> Staging codeblocks into destroot
      ---> Installing codeblocks
    - 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 codeblocks with these commands:
      %  man codeblocks
      % apropos codeblocks
      % which codeblocks
      % locate codeblocks

     Where to find more information:

    Darwin Ports



    Lightbox this page.