apple-gcc40 version 5465 for Mac OS X 10.5 Leopard
Saturday the 17th of May, 2008

    apple-gcc40  most recent diff


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



      # $Id: Portfile 33441 2008-01-27 11:46:26Z ryandesign macports.org $

      PortSystem 1.0

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

      Homepage: http://developer.apple.com/documentation/DeveloperTools/gcc-4.0/gcc/
      master_sites http://www.opensource.apple.com/darwinsource/tarballs/other/
      distname gcc-${version}
      checksums sha1 7452d5a5a8f8b125cf2ab31781c78da9b6d84bbe

      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++ breaks!
      configure.args --enable-languages=c,objc --program-suffix=-apple-4.0
      configure.cflags
      configure.ldflags
      configure.cppflags
      configure.env PATH="/bin:/usr/bin:/sbin:/usr/sbin"

      platform darwin 8 {
      patchfiles patch-config-darwin.h
      }

      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.0 && ln -sf ${nprefix}/bin/cpp-apple-4.0"
      }

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

     Where to find more information:

    Darwin Ports



    image test