Llvm-gcc42 version 2.5 - How to Download and Install on Mac OS X
Monday the 23rd of November, 2009

    llvm-gcc42  most recent diff


    version 2.5

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


      The llvm-gcc42 Portfile 52266 2009-06-13 12:10:01Z ryandesign macports.org $

      PortSystem 1.0

      set major 4.2

      Name: llvm-gcc42
      Version: 2.5
      Category: lang
      Platform: darwin
      Maintainers: erickt openmaintainer
      Description: llvm is a next generation compiler infrastructure
      Long Description: llvm brings tools to work on the llvm intermediate language incl. a C and C++ frontend.

      Homepage: http://llvm.org/
      Master Sites: http://llvm.org/releases/${version}/

      distname llvm-gcc-${major}-${version}.source

      Checksums: md5 c5800d85059fcf80429a86c536127595 sha1 5c2f0f1341868d8cdeb2eb4efdf9bf35c63526cb rmd160 6d93b4024e5caa42396f536935800ce1a02423e4

      depends_lib port:llvm

      worksrcdir build

      pre-patch {
      file mkdir ${workpath}/build
      }

      configure.cmd ../llvm-gcc${major}-${version}.source/configure

      configure.args-append --enable-llvm=${prefix}/lib/llvm/obj --enable-languages=c,c++,objc,obj-c++ --mandir=${prefix}/share/man --infodir=${prefix}/share/info --program-prefix=llvm- --program-suffix=-${major}

      post-destroot {
      file delete -force ${destroot}/${prefix}/share/man/man7
      file delete -force ${destroot}/${prefix}/share/info
      file delete -force ${destroot}/${prefix}/bin/gccld
      file delete -force ${destroot}/${prefix}/bin/gccas
      }

      platform darwin {
      post-extract {
      system "rm -rf ${workpath}/llvm-gcc${major}-${version}.source/libstdc++-v3"
      }

      configure.args-append --with-gxx-include-dir=/usr/include/c++/4.0.0
      }

      platform darwin powerpc {
      set triple powerpc-apple-darwin${os.major}

      configure.env-append TRIPLE=${triple}
      configure.post_args --build=${triple} --host=${triple} --target=${triple}
      }

      platform darwin i386 {
      set triple i686-apple-darwin${os.major}

      configure.env-append TRIPLE=${triple} TARGETOPTIONS="--with-arch=nocona --with-tune=generic"
      configure.post_args --build=${triple} --host=${triple} --target=${triple}
      }


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.