Apple-gcc42-devel version 5564 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    apple-gcc42-devel  most recent diff


    version 5564

      View the most recent changes for the apple-gcc42-devel port at: apple-gcc42-devel.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for apple-gcc42-devel.
      The raw portfile for apple-gcc42-devel 5564 is located here:
      http://apple-gcc42-devel.darwinports.com/dports/lang/apple-gcc42-devel/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-devel


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

      PortSystem 1.0

      Name: apple-gcc42-devel
      Version: 5564
      Category: lang
      Platform: darwin
      Maintainers: illogic-al
      Description: Updated version of Apple's version of gcc 4.2
      Long Description: Apple's version of the GNU compiler collection, version 4.2. Supports C, 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: md5 cc919b07776db1a209ccaa48b0e19da7

      # The prefix is set to /usr because parts of the script are hardcoded to expect it
      set build_prefix /usr

      post-extract {
      file mkdir ${worksrcpath}/debug
      file mkdir ${destroot}
      }

      post-patch {
      reinplace "s|MAKEINFO=\$\(MAKEINFO\) \$\(MAKEINFOFLAGS\)|MAKEINFO=makeinfo \$\(MAKEINFOFLAGS\)|" ${worksrcpath}/Makefile.in
      }

      use_configure no

      # first parameter: space-separated list of archs compiler will run on
      # second parameter: space-separated list of archs compiler will generate code for
      # third parameter: path to the compiler sources
      # fourth parameter: location compiler will be installed to. /usr is expected
      # fifth parameter: place compiler will be copied once it's built
      # sixth parameter: a directory to place information helpful in debugging compiler
      # This build.cmd line will build gcc 4.2 with c++ and obj-c++ support
      build.cmd ${worksrcpath}/build_gcc \"${configure.universal_archs}\" \"${configure.universal_archs}\" ${worksrcpath} ${build_prefix} ${destroot} ${worksrcpath}/debug

      destroot {}

      platform darwin 8 {
      destroot.violate_mtree yes
      # Delete docs and not violate_mtree
      #system "rm -rf ${destroot}/Developer"
      }

      platform darwin 9 {
      post-destroot {
      # This documentation is already installed in Xcode for 10.5
      system "rm -rf ${destroot}/Developer"
      }
      }

      post-destroot {
      system "mkdir -p ${destroot}${prefix}"
      system "rm -rf ${destroot}${prefix}/*"
      system "mv -f ${destroot}${build_prefix}/* ${destroot}${prefix}"
      system "rmdir ${destroot}${build_prefix}"
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.