Apple-gcc42 version 5531 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    apple-gcc42  most recent diff


    version 5531

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


      The apple-gcc42 Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: apple-gcc42
      Version: 5531
      Category: lang
      Platform: darwin
      Maintainers: mww
      Description: Apple's version of gcc 4.2
      Long Description: Apple's version of the GNU compiler collection, version 4.2. Supports C and Objective-C.

      Homepage: http://developer.apple.com/documentation/DeveloperTools/gcc-4.2/gcc/
      Master Sites: http://www.opensource.apple.com/darwinsource/tarballs/other/
      distname gcc_42-${version}
      Checksums: sha1 b8635f310393c17e6494fef0358ee944e03aa5c1

      post-extract { file mkdir ${workpath}/build }

      set nprefix ${prefix}/lib/${name}

      # try to avoid non-Apple programs at all costs (rather volatile build)
      configure.dir ${workpath}/build
      configure.cmd ${worksrcpath}/configure
      configure.pre_args --prefix=${nprefix}
      # C++ support breaks the build
      configure.args --enable-languages=c,objc --program-suffix=-apple-4.2
      configure.cflags
      configure.ldflags
      configure.cppflags
      configure.env PATH="/bin:/usr/bin:/sbin:/usr/sbin"

      build.dir ${configure.dir}

      destroot.dir ${build.dir}

      post-destroot {
      file delete -force ${destroot}${nprefix}/man ${destroot}${nprefix}/info
      system "cd ${destroot}${prefix}/bin && ln -sf ${nprefix}/bin/gcc-apple-4.2 && ln -sf ${nprefix}/bin/cpp-apple-4.2"
      }

      livecheck.type moddate
      livecheck.url ${master_sites}


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.