gcc40 version 4.0.4 for Mac OS X 10.5 Leopard
Friday the 16th of May, 2008

    gcc40  most recent diff


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



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

      PortSystem 1.0

      Name: gcc40
      Version: 4.0.4
      revision 1
      Platform: darwin
      Category: lang
      Maintainers: mww
      Description: The GNU compiler collection
      Long Description: The GNU compiler collection, including front ends for C, C++, Objective-C, Java and Fortran95.

      Homepage: http://gcc.gnu.org/
      master_sites ftp://gcc.gnu.org/pub/gcc/releases/gcc-${version}/ ftp://ftp.gwdg.de/pub/linux/gcc/releases/gcc-${version}/ gnu:/gcc/gcc-${version}
      set dcore gcc-core-${version}.tar.bz2
      set dfort gcc-fortran-${version}.tar.bz2
      set dcxx gcc-g++-${version}.tar.bz2
      set djava gcc-java-${version}.tar.bz2
      set dobjc gcc-objc-${version}.tar.bz2
      distfiles ${dcore} ${dfort} ${dcxx} ${dcxx} ${djava} ${dobjc}

      checksums ${dcore} sha1 55c664b33a4dc6b2130c47da28a1d6daab732ce9 ${dfort} sha1 fff9f58ff51e10dac89fb0b51ad74f5f90d5cabc ${dcxx} sha1 804870b31d1567e81c96a682dd9ef5a6175e8574 ${djava} sha1 9f0c56f4dabbe74811d40344ce0afe920798cca4 ${dobjc} sha1 5c5c3052796fef9e1fc4a468f6e04881c6dc9267

      use_bzip2 yes

      depends_lib port:gmp port:mpfr

      set major 4.0

      worksrcdir build

      post-extract {
      file mkdir ${worksrcpath}
      }

      #patchfiles patch-config-i386-darwin.h
      #patch.dir ${workpath}/gcc-${version}

      configure.cmd ${workpath}/gcc-${version}/configure
      configure.args --enable-languages=c,c++,java,objc,f95 --libdir=${prefix}/lib/${name} --includedir=${prefix}/include/${name} --infodir=${prefix}/share/info --mandir=${prefix}/share/man --with-local-prefix=${prefix} --with-system-zlib --disable-nls --program-suffix=-mp-${major} --with-gxx-include-dir=${prefix}/include/${name}/c++/ --with-gmp=${prefix} --with-mpfr=${prefix}

      #use_parallel_build yes
      build.target profiledbootstrap
      build.args -j 2

      post-destroot {
      cd ${destroot}${prefix}
      file delete -force share/man/man7
      file delete -force share/info
      }

      platform darwin 7 {
      depends_build port:odcctools
      patch {
      reinplace "s|/usr/bin/libtool|${prefix}/bin/odlibtool|g" ${workpath}/gcc-${version}/gcc/config/darwin.h
      }
      configure.args-append --with-as=${prefix}/bin/odas --with-ld=${prefix}/bin/odld --with-ar=${prefix}/bin/odar
      }

      platform powerpc {
      post-destroot {
      system "cd ${destroot}${prefix}/include/${name} && cp ../../lib/${name}/gcc/*/${version}/include/libffi/ffitarget.h ."
      }
      }

      livecheck.check regex
      livecheck.url http://gcc.gnu.org/gcc-4.0/
      livecheck.regex GCC (4\\.0\\.\[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/gcc40
      % sudo port install 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 gcc40
      ---> Verifying checksum for gcc40
      ---> Extracting gcc40
      ---> Configuring gcc40
      ---> Building gcc40 with target all
      ---> Staging gcc40 into destroot
      ---> Installing 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 gcc40 with these commands:
      %  man gcc40
      % apropos gcc40
      % which gcc40
      % locate gcc40

     Where to find more information:

    Darwin Ports



    image test